pub struct L2Snapshot {
pub timestamp: u64,
pub symbol: String,
pub levels: (Vec<OrderBookLevel>, Vec<OrderBookLevel>),
}Expand description
Full L2 order-book snapshot.
Received on the "l2Snapshot" channel.
Fields§
§timestamp: u64§symbol: String§levels: (Vec<OrderBookLevel>, Vec<OrderBookLevel>)[[bid_levels], [ask_levels]]
Trait Implementations§
Source§impl Clone for L2Snapshot
impl Clone for L2Snapshot
Source§fn clone(&self) -> L2Snapshot
fn clone(&self) -> L2Snapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for L2Snapshot
impl Debug for L2Snapshot
Source§impl<'de> Deserialize<'de> for L2Snapshot
impl<'de> Deserialize<'de> for L2Snapshot
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
Auto Trait Implementations§
impl Freeze for L2Snapshot
impl RefUnwindSafe for L2Snapshot
impl Send for L2Snapshot
impl Sync for L2Snapshot
impl Unpin for L2Snapshot
impl UnsafeUnpin for L2Snapshot
impl UnwindSafe for L2Snapshot
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