pub struct CanonicalOrderbookDelta {
pub symbol: String,
pub bid_updates: Vec<CanonicalLevel>,
pub ask_updates: Vec<CanonicalLevel>,
pub first_update_id: Option<u64>,
pub last_update_id: Option<u64>,
pub prev_update_id: Option<u64>,
pub timestamp_ms: i64,
}Expand description
Canonical incremental orderbook update.
A level with quantity == Decimal::ZERO means “remove this price level”.
Fields§
§symbol: String§bid_updates: Vec<CanonicalLevel>Bid-side updates (quantity=0 → remove).
ask_updates: Vec<CanonicalLevel>Ask-side updates (quantity=0 → remove).
first_update_id: Option<u64>§last_update_id: Option<u64>§prev_update_id: Option<u64>§timestamp_ms: i64UTC milliseconds.
Trait Implementations§
Source§impl Clone for CanonicalOrderbookDelta
impl Clone for CanonicalOrderbookDelta
Source§fn clone(&self) -> CanonicalOrderbookDelta
fn clone(&self) -> CanonicalOrderbookDelta
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 CanonicalOrderbookDelta
impl Debug for CanonicalOrderbookDelta
Source§impl PartialEq for CanonicalOrderbookDelta
impl PartialEq for CanonicalOrderbookDelta
Source§fn eq(&self, other: &CanonicalOrderbookDelta) -> bool
fn eq(&self, other: &CanonicalOrderbookDelta) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CanonicalOrderbookDelta
Auto Trait Implementations§
impl Freeze for CanonicalOrderbookDelta
impl RefUnwindSafe for CanonicalOrderbookDelta
impl Send for CanonicalOrderbookDelta
impl Sync for CanonicalOrderbookDelta
impl Unpin for CanonicalOrderbookDelta
impl UnsafeUnpin for CanonicalOrderbookDelta
impl UnwindSafe for CanonicalOrderbookDelta
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