#[repr(align(16))]pub struct ParsedTradeData {
pub symbol: String,
pub trade_id: u64,
pub price: Decimal,
pub quantity: Decimal,
pub is_buyer_market_maker: bool,
pub trade_time: u64,
pub event_time: u64,
}Expand description
Parsed trade data with Decimal values
Fields§
§symbol: StringSymbol
trade_id: u64Trade ID
price: DecimalPrice
quantity: DecimalQuantity
is_buyer_market_maker: boolBuy or sell side
trade_time: u64Trade timestamp
event_time: u64Event timestamp (when message was generated)
Trait Implementations§
Source§impl Clone for ParsedTradeData
impl Clone for ParsedTradeData
Source§fn clone(&self) -> ParsedTradeData
fn clone(&self) -> ParsedTradeData
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 ParsedTradeData
impl Debug for ParsedTradeData
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 ParsedTradeData
impl RefUnwindSafe for ParsedTradeData
impl Send for ParsedTradeData
impl Sync for ParsedTradeData
impl Unpin for ParsedTradeData
impl UnwindSafe for ParsedTradeData
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