pub struct TradeEvent {
pub event_time: u64,
pub symbol: String,
pub trade_id: u64,
pub price: f64,
pub quantity: f64,
pub buyer_order_id: u64,
pub seller_order_id: u64,
pub trade_time: u64,
pub is_buyer_maker: bool,
pub is_best_match: bool,
}Expand description
Trade event.
Fields§
§event_time: u64Event time.
symbol: StringSymbol.
trade_id: u64Trade ID.
price: f64Price.
quantity: f64Quantity.
buyer_order_id: u64Buyer order ID.
seller_order_id: u64Seller order ID.
trade_time: u64Trade time.
is_buyer_maker: boolIs buyer the maker.
is_best_match: boolIgnore.
Trait Implementations§
Source§impl Clone for TradeEvent
impl Clone for TradeEvent
Source§fn clone(&self) -> TradeEvent
fn clone(&self) -> TradeEvent
Returns a duplicate 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 moreSource§impl Debug for TradeEvent
impl Debug for TradeEvent
Source§impl<'de> Deserialize<'de> for TradeEvent
impl<'de> Deserialize<'de> for TradeEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TradeEvent
impl RefUnwindSafe for TradeEvent
impl Send for TradeEvent
impl Sync for TradeEvent
impl Unpin for TradeEvent
impl UnwindSafe for TradeEvent
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