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: u64
Event timestamp.
is_trade: bool
True if event is trade. It’s order if false.
is_bid: bool
True if event is bid. It’s ask if false.
rate: f32
Order or trade price.
amount: f32
Order 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