#[repr(align(16))]pub struct ParsedOrderbookData {
pub symbol: String,
pub first_update_id: u64,
pub final_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 data with Decimal values
Fields§
§symbol: StringSymbol
first_update_id: u64First update ID
final_update_id: u64Final 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 ParsedOrderbookData
impl Clone for ParsedOrderbookData
Source§fn clone(&self) -> ParsedOrderbookData
fn clone(&self) -> ParsedOrderbookData
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 ParsedOrderbookData
impl Debug for ParsedOrderbookData
Source§impl From<OrderbookMessage> for ParsedOrderbookData
impl From<OrderbookMessage> for ParsedOrderbookData
Source§fn from(msg: OrderbookMessage) -> Self
fn from(msg: OrderbookMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParsedOrderbookData
impl RefUnwindSafe for ParsedOrderbookData
impl Send for ParsedOrderbookData
impl Sync for ParsedOrderbookData
impl Unpin for ParsedOrderbookData
impl UnwindSafe for ParsedOrderbookData
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