pub struct OrderBookLevel {
pub price: f64,
pub size: f64,
pub order_cnt: Option<u32>,
}Expand description
A single price level in a Level 2 order book.
Represents the aggregate size (and optionally order count) resting at one price level on either the bid or ask side.
Fields§
§price: f64Price level
size: f64Size at this level
order_cnt: Option<u32>Number of orders at this level (if available)
Trait Implementations§
Source§impl Clone for OrderBookLevel
impl Clone for OrderBookLevel
Source§fn clone(&self) -> OrderBookLevel
fn clone(&self) -> OrderBookLevel
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 OrderBookLevel
impl Debug for OrderBookLevel
Source§impl<'de> Deserialize<'de> for OrderBookLevel
impl<'de> Deserialize<'de> for OrderBookLevel
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 OrderBookLevel
impl PartialEq for OrderBookLevel
Source§impl Serialize for OrderBookLevel
impl Serialize for OrderBookLevel
impl StructuralPartialEq for OrderBookLevel
Auto Trait Implementations§
impl Freeze for OrderBookLevel
impl RefUnwindSafe for OrderBookLevel
impl Send for OrderBookLevel
impl Sync for OrderBookLevel
impl Unpin for OrderBookLevel
impl UnsafeUnpin for OrderBookLevel
impl UnwindSafe for OrderBookLevel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more