Enum MarketData
pub enum MarketData {
Trade(Trade),
L2Delta(L2Update),
L2Snapshot(L2Update),
Liquidation(LiquidationEvent),
OhlcvBar(OhlcvBar),
}Expand description
Typed market data payload. Serializes with an internal market_type tag
so the journal record includes an explicit discriminant per JOURNAL_SPEC §8.4.
Variants§
Trade(Trade)
L2Delta(L2Update)
L2Snapshot(L2Update)
Liquidation(LiquidationEvent)
OhlcvBar(OhlcvBar)
Implementations§
§impl MarketData
impl MarketData
pub fn data_type(&self) -> MarketDataType
pub fn data_type(&self) -> MarketDataType
Returns the type discriminant for this variant.
Trait Implementations§
§impl Clone for MarketData
impl Clone for MarketData
§fn clone(&self) -> MarketData
fn clone(&self) -> MarketData
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for MarketData
impl Debug for MarketData
§impl<'de> Deserialize<'de> for MarketData
impl<'de> Deserialize<'de> for MarketData
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MarketData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MarketData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for MarketData
impl PartialEq for MarketData
§impl Serialize for MarketData
impl Serialize for MarketData
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for MarketData
impl StructuralPartialEq for MarketData
Auto Trait Implementations§
impl Freeze for MarketData
impl RefUnwindSafe for MarketData
impl Send for MarketData
impl Sync for MarketData
impl Unpin for MarketData
impl UnsafeUnpin for MarketData
impl UnwindSafe for MarketData
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)