pub struct EventData {
pub ts: u64,
pub is_trade: bool,
pub is_bid: bool,
pub rate: f32,
pub amount: f32,
}Expand description
Tectonic data row.
Fields§
§ts: u64Event timestamp.
is_trade: boolTrue if event is trade. It’s order if false.
is_bid: boolTrue if event is bid. It’s ask if false.
rate: f32Order or trade price.
amount: f32Order or trade quantity.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventData
impl RefUnwindSafe for EventData
impl Send for EventData
impl Sync for EventData
impl Unpin for EventData
impl UnwindSafe for EventData
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