#[repr(align(16))]pub struct ParsedOrderbookSnapshot {
pub last_update_id: u64,
pub event_time: u64,
pub transaction_time: u64,
pub bids: SmallVec<[(Decimal, Decimal); 32]>,
pub asks: SmallVec<[(Decimal, Decimal); 32]>,
}Expand description
Parsed orderbook snapshot with Decimal values
Fields§
§last_update_id: u64Last update ID
event_time: u64Event timestamp
transaction_time: u64Transaction timestamp
bids: SmallVec<[(Decimal, Decimal); 32]>Bid updates [price, quantity]
asks: SmallVec<[(Decimal, Decimal); 32]>Ask updates [price, quantity]
Trait Implementations§
Source§impl Clone for ParsedOrderbookSnapshot
impl Clone for ParsedOrderbookSnapshot
Source§fn clone(&self) -> ParsedOrderbookSnapshot
fn clone(&self) -> ParsedOrderbookSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParsedOrderbookSnapshot
impl Debug for ParsedOrderbookSnapshot
Source§impl From<OrderbookSnapshot> for ParsedOrderbookSnapshot
impl From<OrderbookSnapshot> for ParsedOrderbookSnapshot
Source§fn from(snapshot: OrderbookSnapshot) -> Self
fn from(snapshot: OrderbookSnapshot) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParsedOrderbookSnapshot
impl RefUnwindSafe for ParsedOrderbookSnapshot
impl Send for ParsedOrderbookSnapshot
impl Sync for ParsedOrderbookSnapshot
impl Unpin for ParsedOrderbookSnapshot
impl UnwindSafe for ParsedOrderbookSnapshot
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