pub enum CanonicalEvent {
Trade(CanonicalTrade),
Ticker(CanonicalTicker),
Orderbook(CanonicalOrderbook),
OrderbookDelta(CanonicalOrderbookDelta),
Kline(CanonicalKline),
Other,
}Expand description
Unified canonical event — output of Canonicalize on StreamEvent.
Variants§
Trade(CanonicalTrade)
Ticker(CanonicalTicker)
Orderbook(CanonicalOrderbook)
OrderbookDelta(CanonicalOrderbookDelta)
Kline(CanonicalKline)
Other
Events not yet mapped to a canonical form (private events, MarkPrice, etc.).
Trait Implementations§
Source§impl Clone for CanonicalEvent
impl Clone for CanonicalEvent
Source§fn clone(&self) -> CanonicalEvent
fn clone(&self) -> CanonicalEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CanonicalEvent
impl Debug for CanonicalEvent
Source§impl PartialEq for CanonicalEvent
impl PartialEq for CanonicalEvent
Source§fn eq(&self, other: &CanonicalEvent) -> bool
fn eq(&self, other: &CanonicalEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CanonicalEvent
Auto Trait Implementations§
impl Freeze for CanonicalEvent
impl RefUnwindSafe for CanonicalEvent
impl Send for CanonicalEvent
impl Sync for CanonicalEvent
impl Unpin for CanonicalEvent
impl UnsafeUnpin for CanonicalEvent
impl UnwindSafe for CanonicalEvent
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