pub enum OrderbookMsg {
Snapshot {
topic: Topic,
ts: Timestamp,
data: OrderbookDataMsg,
cts: Timestamp,
},
Delta {
topic: Topic,
ts: Timestamp,
data: OrderbookDataMsg,
cts: Timestamp,
},
}Expand description
from_json parses this message through a plain struct (see Frame) so
that errors keep the field path; the derived impl is the fallback.
Variants§
Snapshot
Full order book; replace the local book.
Fields
§
data: OrderbookDataMsgMessage data.
Delta
Changed levels; size 0 removes a level.
Trait Implementations§
Source§impl Debug for OrderbookMsg
impl Debug for OrderbookMsg
Source§impl<'de> Deserialize<'de> for OrderbookMsg
impl<'de> Deserialize<'de> for OrderbookMsg
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
Source§impl PartialEq for OrderbookMsg
impl PartialEq for OrderbookMsg
impl StructuralPartialEq for OrderbookMsg
Auto Trait Implementations§
impl Freeze for OrderbookMsg
impl RefUnwindSafe for OrderbookMsg
impl Send for OrderbookMsg
impl Sync for OrderbookMsg
impl Unpin for OrderbookMsg
impl UnsafeUnpin for OrderbookMsg
impl UnwindSafe for OrderbookMsg
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