Struct L2Update
pub struct L2Update {
pub venue_id: VenueId,
pub instrument_id: InstrumentId,
pub bids: Vec<(Price, Qty)>,
pub asks: Vec<(Price, Qty)>,
pub venue_seq: Option<u64>,
}Expand description
A level-2 order book update (delta or snapshot).
Whether this is a delta or snapshot is determined by the enclosing
MarketData variant (L2Delta vs L2Snapshot), not by a field
on this struct.
Fields§
§venue_id: VenueId§instrument_id: InstrumentId§bids: Vec<(Price, Qty)>§asks: Vec<(Price, Qty)>§venue_seq: Option<u64>Trait Implementations§
§impl<'de> Deserialize<'de> for L2Update
impl<'de> Deserialize<'de> for L2Update
§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 L2Update
impl StructuralPartialEq for L2Update
Auto Trait Implementations§
impl Freeze for L2Update
impl RefUnwindSafe for L2Update
impl Send for L2Update
impl Sync for L2Update
impl Unpin for L2Update
impl UnsafeUnpin for L2Update
impl UnwindSafe for L2Update
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)