pub struct PriceLevel {
pub price: f64,
pub size: i64,
}Expand description
Price level for order book (bid/ask)
Fields§
§price: f64Price at this level
size: i64Size (volume) at this level
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 (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 PriceLevel
impl Debug for PriceLevel
Source§impl Default for PriceLevel
impl Default for PriceLevel
Source§fn default() -> PriceLevel
fn default() -> PriceLevel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PriceLevel
impl<'de> Deserialize<'de> for PriceLevel
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PriceLevel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PriceLevel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PriceLevel
impl PartialEq for PriceLevel
Source§fn eq(&self, other: &PriceLevel) -> bool
fn eq(&self, other: &PriceLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PriceLevel
impl Serialize for PriceLevel
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PriceLevel
Auto Trait Implementations§
impl Freeze for PriceLevel
impl RefUnwindSafe for PriceLevel
impl Send for PriceLevel
impl Sync for PriceLevel
impl Unpin for PriceLevel
impl UnsafeUnpin 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