pub struct Trade<'a> {
pub T: u64,
pub s: &'a str,
pub S: &'a str,
pub v: &'a str,
pub p: &'a str,
pub L: Option<&'a str>,
pub i: &'a str,
pub BT: bool,
}Expand description
The trade data.
Fields§
§T: u64The timestamp (ms) that the order is filled.
s: &'a strSymbol name.
S: &'a strSide. Buy, Sell.
v: &'a strTrade size.
p: &'a strTrade price.
L: Option<&'a str>Direction of price change. Unique field for future.
i: &'a strTrade ID.
BT: boolWhether it is a block trade order or not.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Trade<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Trade<'a>
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<'a> Freeze for Trade<'a>
impl<'a> RefUnwindSafe for Trade<'a>
impl<'a> Send for Trade<'a>
impl<'a> Sync for Trade<'a>
impl<'a> Unpin for Trade<'a>
impl<'a> UnwindSafe for Trade<'a>
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