pub struct ParsedLevel2Update {
pub product_id: String,
pub time: String,
pub bids: SmallVec<[(Decimal, Decimal); 32]>,
pub asks: SmallVec<[(Decimal, Decimal); 32]>,
}Expand description
Parsed Level2 update for efficient processing
Fields§
§product_id: StringTrading pair identifier
time: StringUpdate timestamp
bids: SmallVec<[(Decimal, Decimal); 32]>Bid updates as (price, size) tuples
asks: SmallVec<[(Decimal, Decimal); 32]>Ask updates as (price, size) tuples
Implementations§
Source§impl ParsedLevel2Update
impl ParsedLevel2Update
Sourcepub fn from_update(update: Level2Update) -> Self
pub fn from_update(update: Level2Update) -> Self
Convert a Level2Update to a ParsedLevel2Update with typed decimals
Trait Implementations§
Source§impl Clone for ParsedLevel2Update
impl Clone for ParsedLevel2Update
Source§fn clone(&self) -> ParsedLevel2Update
fn clone(&self) -> ParsedLevel2Update
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 moreAuto Trait Implementations§
impl Freeze for ParsedLevel2Update
impl RefUnwindSafe for ParsedLevel2Update
impl Send for ParsedLevel2Update
impl Sync for ParsedLevel2Update
impl Unpin for ParsedLevel2Update
impl UnwindSafe for ParsedLevel2Update
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