#[non_exhaustive]pub struct PartialDepthEvent {
pub symbol: String,
pub last_update_id: u64,
pub bids: Vec<Level>,
pub asks: Vec<Level>,
}Expand description
<s>@depth<levels> and <s>@depth<levels>@100ms: the top of the book.
The frame carries lastUpdateId, bids and asks and no symbol, so
symbol is the envelope’s, uppercased as Symbol
renders it, and it is not serialised back.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.symbol: StringThe symbol, from the envelope’s stream name.
last_update_id: u64Book update id of the snapshot.
bids: Vec<Level>Bids, best first.
asks: Vec<Level>Asks, best first.
Trait Implementations§
Source§impl Clone for PartialDepthEvent
impl Clone for PartialDepthEvent
Source§impl Debug for PartialDepthEvent
impl Debug for PartialDepthEvent
Source§impl<'de> Deserialize<'de> for PartialDepthEvent
impl<'de> Deserialize<'de> for PartialDepthEvent
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
impl Eq for PartialDepthEvent
Source§impl PartialEq for PartialDepthEvent
impl PartialEq for PartialDepthEvent
Source§impl Serialize for PartialDepthEvent
impl Serialize for PartialDepthEvent
impl StructuralPartialEq for PartialDepthEvent
Auto Trait Implementations§
impl Freeze for PartialDepthEvent
impl RefUnwindSafe for PartialDepthEvent
impl Send for PartialDepthEvent
impl Sync for PartialDepthEvent
impl Unpin for PartialDepthEvent
impl UnsafeUnpin for PartialDepthEvent
impl UnwindSafe for PartialDepthEvent
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