#[non_exhaustive]pub struct MarketDepth {
pub symbol_id: Option<SymbolId>,
pub timestamp: Timestamp,
pub depth_type: DepthType,
pub price: Decimal,
pub volume: i64,
pub current_volume: i64,
pub index: Option<i32>,
}Expand description
Depth-of-market update from the market hub.
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_id: Option<SymbolId>Provider symbol identifier, when supplied.
timestamp: TimestampEvent timestamp.
depth_type: DepthTypeProvider depth event code.
price: DecimalPrice level.
volume: i64Incremental volume for the update.
current_volume: i64Resting volume after the update.
index: Option<i32>Zero-based level index, when supplied.
Trait Implementations§
Source§impl Clone for MarketDepth
impl Clone for MarketDepth
Source§fn clone(&self) -> MarketDepth
fn clone(&self) -> MarketDepth
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 MarketDepth
impl Debug for MarketDepth
Source§impl<'de> Deserialize<'de> for MarketDepth
impl<'de> Deserialize<'de> for MarketDepth
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 MarketDepth
impl PartialEq for MarketDepth
impl StructuralPartialEq for MarketDepth
Auto Trait Implementations§
impl Freeze for MarketDepth
impl RefUnwindSafe for MarketDepth
impl Send for MarketDepth
impl Sync for MarketDepth
impl Unpin for MarketDepth
impl UnsafeUnpin for MarketDepth
impl UnwindSafe for MarketDepth
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