pub struct DepthPrecision(String);Expand description
Validated depth precision for WebSocket subscriptions.
Created via DepthPrecision::new from a user-facing level (1–18).
Level 1 = most precise (finest tick), 18 = most grouped.
Required by O2WebSocket::stream_depth. The high-level
O2Client::stream_depth accepts a
plain integer and creates this internally.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for DepthPrecision
impl Clone for DepthPrecision
Source§fn clone(&self) -> DepthPrecision
fn clone(&self) -> DepthPrecision
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DepthPrecision
impl RefUnwindSafe for DepthPrecision
impl Send for DepthPrecision
impl Sync for DepthPrecision
impl Unpin for DepthPrecision
impl UnwindSafe for DepthPrecision
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more