#[non_exhaustive]pub struct Trade {
pub key: MarketKey,
pub id: Option<TradeId>,
pub price: Decimal,
pub size: Decimal,
pub notional: Option<Decimal>,
pub taker_side: Option<Side>,
pub time: UnixMillis,
pub extensions: Extensions,
}Expand description
One public trade.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: MarketKeyThe instrument’s key.
id: Option<TradeId>The venue’s id for the trade, when it gives one.
price: DecimalThe price.
size: DecimalThe size, in native quantity.
notional: Option<Decimal>The amount, in the quote currency, when the venue publishes it.
taker_side: Option<Side>The taker’s side, when the venue says.
time: UnixMillisWhen it traded.
extensions: ExtensionsThe venue’s own facts.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Trade
Auto Trait Implementations§
impl !RefUnwindSafe for Trade
impl !UnwindSafe for Trade
impl Freeze for Trade
impl Send for Trade
impl Sync for Trade
impl Unpin for Trade
impl UnsafeUnpin for Trade
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