pub struct TradeUpdate {
pub event_type: String,
pub event_time: i64,
pub symbol: String,
pub price: Decimal,
pub quantity: Decimal,
pub buyer_order_id: String,
pub seller_order_id: String,
pub trade_id: u64,
pub timestamp: i64,
pub buyer_is_maker: bool,
}Fields§
§event_type: StringEvent type.
event_time: i64Event timestamp in microseconds.
symbol: StringSymbol.
price: DecimalPrice.
quantity: DecimalQuantity.
buyer_order_id: StringBuyer order ID.
seller_order_id: StringSeller order ID.
trade_id: u64Trade ID.
timestamp: i64Engine timestamp in microseconds.
buyer_is_maker: boolIs the buyer the maker?
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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TradeUpdate
impl Debug for TradeUpdate
Source§impl<'de> Deserialize<'de> for TradeUpdate
impl<'de> Deserialize<'de> for TradeUpdate
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 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