#[non_exhaustive]pub enum DepthType {
Show 13 variants
Unknown,
Ask,
Bid,
BestAsk,
BestBid,
Trade,
Reset,
Low,
High,
NewBestBid,
NewBestAsk,
Fill,
UnknownCode(i32),
}Expand description
A ProjectX depth-of-market update kind.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
Provider sentinel with no book mutation.
Ask
Resting ask level.
Bid
Resting bid level.
BestAsk
Best ask update.
BestBid
Best bid update.
Trade
Trade notification carried on the depth stream.
Reset
Full book reset.
Low
Session-low notification.
High
Session-high notification.
NewBestBid
New best bid.
NewBestAsk
New best ask.
Fill
Fill notification carried on the depth stream.
UnknownCode(i32)
Provider code not known to this crate version.
Implementations§
Trait Implementations§
impl Copy for DepthType
Source§impl<'de> Deserialize<'de> for DepthType
impl<'de> Deserialize<'de> for DepthType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DepthType
impl StructuralPartialEq for DepthType
Auto Trait Implementations§
impl Freeze for DepthType
impl RefUnwindSafe for DepthType
impl Send for DepthType
impl Sync for DepthType
impl Unpin for DepthType
impl UnsafeUnpin for DepthType
impl UnwindSafe for DepthType
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