pub struct TradeUpdate {
pub price: Decimal,
pub quantity: Decimal,
pub side: TradeSide,
pub timestamp_ns: u64,
}Expand description
Trade update for incremental calculation Trade update for incremental calculation.
Fields§
§price: DecimalThe trade price.
quantity: DecimalThe trade quantity.
side: TradeSideThe side of the trade.
timestamp_ns: u64Nanosecond timestamp of the update.
Trait Implementations§
Source§impl Clone for TradeUpdate
impl Clone for TradeUpdate
Source§fn clone(&self) -> TradeUpdate
fn clone(&self) -> TradeUpdate
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 TradeUpdate
impl RefUnwindSafe for TradeUpdate
impl Send for TradeUpdate
impl Sync for TradeUpdate
impl Unpin for TradeUpdate
impl UnwindSafe for TradeUpdate
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