#[repr(i32)]pub enum Depth {
DEPTH_UNSPECIFIED = 0,
DEPTH_1 = 1,
DEPTH_5 = 2,
DEPTH_10 = 3,
DEPTH_20 = 4,
DEPTH_50 = 5,
DEPTH_100 = 6,
DEPTH_200 = 7,
DEPTH_500 = 8,
DEPTH_1000 = 9,
}Expand description
Depth specifies the number of price levels per side.
Variants§
DEPTH_UNSPECIFIED = 0
Default depth (50 levels per side).
DEPTH_1 = 1
1 level per side (top of book / best bid-ask).
DEPTH_5 = 2
5 levels per side.
DEPTH_10 = 3
10 levels per side.
DEPTH_20 = 4
20 levels per side.
DEPTH_50 = 5
50 levels per side.
DEPTH_100 = 6
100 levels per side.
DEPTH_200 = 7
200 levels per side.
DEPTH_500 = 8
500 levels per side.
DEPTH_1000 = 9
1000 levels per side.
Implementations§
Source§impl Depth
impl Depth
Sourcepub const DepthUnspecified: Self = Self::DEPTH_UNSPECIFIED
pub const DepthUnspecified: Self = Self::DEPTH_UNSPECIFIED
Idiomatic alias for Self::DEPTH_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Depth1: Self = Self::DEPTH_1
pub const Depth1: Self = Self::DEPTH_1
Idiomatic alias for Self::DEPTH_1; Debug prints the variant name.
Sourcepub const Depth5: Self = Self::DEPTH_5
pub const Depth5: Self = Self::DEPTH_5
Idiomatic alias for Self::DEPTH_5; Debug prints the variant name.
Sourcepub const Depth10: Self = Self::DEPTH_10
pub const Depth10: Self = Self::DEPTH_10
Idiomatic alias for Self::DEPTH_10; Debug prints the variant name.
Sourcepub const Depth20: Self = Self::DEPTH_20
pub const Depth20: Self = Self::DEPTH_20
Idiomatic alias for Self::DEPTH_20; Debug prints the variant name.
Sourcepub const Depth50: Self = Self::DEPTH_50
pub const Depth50: Self = Self::DEPTH_50
Idiomatic alias for Self::DEPTH_50; Debug prints the variant name.
Sourcepub const Depth100: Self = Self::DEPTH_100
pub const Depth100: Self = Self::DEPTH_100
Idiomatic alias for Self::DEPTH_100; Debug prints the variant name.
Sourcepub const Depth200: Self = Self::DEPTH_200
pub const Depth200: Self = Self::DEPTH_200
Idiomatic alias for Self::DEPTH_200; Debug prints the variant name.
Sourcepub const Depth500: Self = Self::DEPTH_500
pub const Depth500: Self = Self::DEPTH_500
Idiomatic alias for Self::DEPTH_500; Debug prints the variant name.
Sourcepub const Depth1000: Self = Self::DEPTH_1000
pub const Depth1000: Self = Self::DEPTH_1000
Idiomatic alias for Self::DEPTH_1000; Debug prints the variant name.
Trait Implementations§
impl Copy for Depth
Source§impl<'de> Deserialize<'de> for Depth
impl<'de> Deserialize<'de> for Depth
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Source§impl Enumeration for Depth
impl Enumeration for Depth
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
.proto file.impl Eq for Depth
Source§impl ProtoElemJson for Depth
impl ProtoElemJson for Depth
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
impl StructuralPartialEq for Depth
Auto Trait Implementations§
impl Freeze for Depth
impl RefUnwindSafe for Depth
impl Send for Depth
impl Sync for Depth
impl Unpin for Depth
impl UnsafeUnpin for Depth
impl UnwindSafe for Depth
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.