#[repr(align(16))]pub struct TradeMessage {
pub event_type: String,
pub event_time: u64,
pub symbol: String,
pub trade_id: u64,
pub price: String,
pub quantity: String,
pub buyer_order_id: Option<u64>,
pub seller_order_id: Option<u64>,
pub trade_time: u64,
pub is_buyer_market_maker: bool,
pub ignore: bool,
}Expand description
Trade message from Binance Spot WebSocket
Fields§
§event_type: StringEvent type
event_time: u64Event time
symbol: StringSymbol
trade_id: u64Trade ID
price: StringPrice
quantity: StringQuantity
buyer_order_id: Option<u64>Buyer order ID
seller_order_id: Option<u64>Seller order ID
trade_time: u64Trade time
is_buyer_market_maker: boolIs the buyer the market maker?
ignore: boolIgnore
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
Source§impl From<TradeMessage> for ParsedTradeData
impl From<TradeMessage> for ParsedTradeData
Source§fn from(msg: TradeMessage) -> Self
fn from(msg: TradeMessage) -> Self
Converts to this type from the input type.
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