pub struct TradeMessage {
pub feed: String,
pub product_id: String,
pub uid: Option<String>,
pub side: Option<String>,
pub trade_type: Option<String>,
pub price: Option<Decimal>,
pub qty: Option<Decimal>,
pub time: Option<u64>,
pub seq: Option<u64>,
}Expand description
Trade message.
Fields§
§feed: StringFeed name.
product_id: StringProduct ID.
uid: Option<String>Trade ID.
side: Option<String>Trade side (“buy” or “sell”).
trade_type: Option<String>Trade type.
price: Option<Decimal>Trade price.
qty: Option<Decimal>Trade quantity.
time: Option<u64>Trade time in milliseconds.
seq: Option<u64>Sequence number.
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§fn clone_from(&mut self, source: &Self)
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