pub struct TradeMessage {
pub event_type: String,
pub event_time: u64,
pub symbol: String,
pub trade_id: u64,
pub price: Decimal,
pub qty: Decimal,
pub buyer_order_id: u64,
pub seller_order_id: u64,
pub trade_order_time: u64,
pub is_buyer_maker: bool,
pub m_ignore: bool,
}
Fields§
§event_type: String
§event_time: u64
§symbol: String
§trade_id: u64
§price: Decimal
§qty: Decimal
§buyer_order_id: u64
§seller_order_id: u64
§trade_order_time: u64
§is_buyer_maker: bool
§m_ignore: bool
Trait Implementations§
Source§impl Clone for TradeMessage
impl Clone for TradeMessage
Source§fn clone(&self) -> TradeMessage
fn clone(&self) -> TradeMessage
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 moreSource§impl Debug for TradeMessage
impl Debug for TradeMessage
Source§impl<'de> Deserialize<'de> for TradeMessage
impl<'de> Deserialize<'de> for TradeMessage
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 TradeMessage
impl RefUnwindSafe for TradeMessage
impl Send for TradeMessage
impl Sync for TradeMessage
impl Unpin for TradeMessage
impl UnwindSafe for TradeMessage
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