pub struct PriceLevelSnapshot {
pub price: u64,
pub visible_quantity: u64,
pub hidden_quantity: u64,
pub order_count: usize,
pub orders: Vec<Arc<OrderType<()>>>,
}Expand description
A snapshot of a price level in the order book. This struct provides a summary of the state of a specific price level at a given point in time, including the price, visible and hidden quantities, order count, and a vector of the orders at that level.
Fields§
§price: u64The price of this level.
visible_quantity: u64Total visible quantity at this level. This represents the sum of the visible quantities of all orders at this price level.
Total hidden quantity at this level. This represents the sum of the hidden quantities of all orders at this price level.
order_count: usizeNumber of orders at this level.
orders: Vec<Arc<OrderType<()>>>Orders at this level. This is a vector of Arc<OrderType<()>> representing each individual order at this price level.
Implementations§
Trait Implementations§
Source§impl Clone for PriceLevelSnapshot
impl Clone for PriceLevelSnapshot
Source§fn clone(&self) -> PriceLevelSnapshot
fn clone(&self) -> PriceLevelSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 PriceLevelSnapshot
impl Debug for PriceLevelSnapshot
Source§impl Default for PriceLevelSnapshot
impl Default for PriceLevelSnapshot
Source§fn default() -> PriceLevelSnapshot
fn default() -> PriceLevelSnapshot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PriceLevelSnapshot
impl<'de> Deserialize<'de> for PriceLevelSnapshot
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 Display for PriceLevelSnapshot
impl Display for PriceLevelSnapshot
Source§impl FromStr for PriceLevelSnapshot
impl FromStr for PriceLevelSnapshot
Auto Trait Implementations§
impl Freeze for PriceLevelSnapshot
impl RefUnwindSafe for PriceLevelSnapshot
impl Send for PriceLevelSnapshot
impl Sync for PriceLevelSnapshot
impl Unpin for PriceLevelSnapshot
impl UnwindSafe for PriceLevelSnapshot
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