pub struct TradeEvent {
pub id: String,
pub timestamp: u64,
pub market: String,
pub amount: String,
pub price: String,
pub side: Side,
}Expand description
Trade pushed on the trades WebSocket channel.
Fields§
§id: String§timestamp: u64§market: String§amount: String§price: String§side: SideTrait Implementations§
Source§impl Clone for TradeEvent
impl Clone for TradeEvent
Source§impl Debug for TradeEvent
impl Debug for TradeEvent
Source§impl<'de> Deserialize<'de> for TradeEvent
impl<'de> Deserialize<'de> for TradeEvent
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 TradeEvent
impl RefUnwindSafe for TradeEvent
impl Send for TradeEvent
impl Sync for TradeEvent
impl Unpin for TradeEvent
impl UnsafeUnpin for TradeEvent
impl UnwindSafe for TradeEvent
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