pub struct PriceLevel {
pub price: Decimal,
pub quantity: Decimal,
pub order_count: Option<u32>,
}Expand description
High-level price level structure
Represents a single price level in an order book with price, quantity, and order count. Used for both bid and ask levels in orderbook snapshots.
Fields§
§price: DecimalPrice at this level using high-precision decimal arithmetic
quantity: DecimalTotal quantity available at this price level
order_count: Option<u32>Number of individual orders at this price level (if available)
Trait Implementations§
Source§impl Clone for PriceLevel
impl Clone for PriceLevel
Source§fn clone(&self) -> PriceLevel
fn clone(&self) -> PriceLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PriceLevel
impl RefUnwindSafe for PriceLevel
impl Send for PriceLevel
impl Sync for PriceLevel
impl Unpin for PriceLevel
impl UnwindSafe for PriceLevel
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