pub enum Level2 {
Snapshot {
product_id: String,
bids: Vec<Level2SnapshotRecord>,
asks: Vec<Level2SnapshotRecord>,
},
L2update {
product_id: String,
changes: Vec<Level2UpdateRecord>,
},
}
Expand description
This enum represents the level 2
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Level2
impl<'de> Deserialize<'de> for Level2
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
Source§impl TryFrom<Level2> for OpenLimitsWebSocketMessage
impl TryFrom<Level2> for OpenLimitsWebSocketMessage
impl StructuralPartialEq for Level2
Auto Trait Implementations§
impl Freeze for Level2
impl RefUnwindSafe for Level2
impl Send for Level2
impl Sync for Level2
impl Unpin for Level2
impl UnwindSafe for Level2
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