pub struct PriceLevelData {
pub price: u64,
pub visible_quantity: u64,
pub hidden_quantity: u64,
pub order_count: usize,
pub orders: Vec<OrderType<()>>,
}Expand description
Serializable representation of a price level for easier data transfer and storage
Fields§
§price: u64The price of this level
visible_quantity: u64Total visible quantity at this price level
Total hidden quantity at this price level
order_count: usizeNumber of orders at this price level
orders: Vec<OrderType<()>>Orders at this price level
Trait Implementations§
Source§impl Debug for PriceLevelData
impl Debug for PriceLevelData
Source§impl<'de> Deserialize<'de> for PriceLevelData
impl<'de> Deserialize<'de> for PriceLevelData
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 From<&PriceLevel> for PriceLevelData
impl From<&PriceLevel> for PriceLevelData
Source§fn from(price_level: &PriceLevel) -> Self
fn from(price_level: &PriceLevel) -> Self
Converts to this type from the input type.
Source§impl Serialize for PriceLevelData
impl Serialize for PriceLevelData
Source§impl TryFrom<PriceLevelData> for PriceLevel
impl TryFrom<PriceLevelData> for PriceLevel
Source§type Error = PriceLevelError
type Error = PriceLevelError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for PriceLevelData
impl RefUnwindSafe for PriceLevelData
impl Send for PriceLevelData
impl Sync for PriceLevelData
impl Unpin for PriceLevelData
impl UnwindSafe for PriceLevelData
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