pub struct TradeTickBuilder { /* private fields */ }
Expand description
Builder for TradeTick
.
Implementations§
Source§impl TradeTickBuilder
impl TradeTickBuilder
Sourcepub fn instrument_id(&mut self, value: InstrumentId) -> &mut Self
pub fn instrument_id(&mut self, value: InstrumentId) -> &mut Self
The trade instrument ID.
Sourcepub fn aggressor_side(&mut self, value: AggressorSide) -> &mut Self
pub fn aggressor_side(&mut self, value: AggressorSide) -> &mut Self
The trade aggressor side.
Sourcepub fn trade_id(&mut self, value: TradeId) -> &mut Self
pub fn trade_id(&mut self, value: TradeId) -> &mut Self
The trade match ID (assigned by the venue).
Sourcepub fn ts_event(&mut self, value: UnixNanos) -> &mut Self
pub fn ts_event(&mut self, value: UnixNanos) -> &mut Self
UNIX timestamp (nanoseconds) when the trade event occurred.
Trait Implementations§
Source§impl Clone for TradeTickBuilder
impl Clone for TradeTickBuilder
Source§fn clone(&self) -> TradeTickBuilder
fn clone(&self) -> TradeTickBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TradeTickBuilder
impl RefUnwindSafe for TradeTickBuilder
impl Send for TradeTickBuilder
impl Sync for TradeTickBuilder
impl Unpin for TradeTickBuilder
impl UnwindSafe for TradeTickBuilder
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