Struct barter_data::exchange::binance::model::BinanceLevel
source · Expand description
Binance OrderBook level.
See docs: https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
Fields§
§price: f64§quantity: f64Trait Implementations§
source§impl Clone for BinanceLevel
impl Clone for BinanceLevel
source§fn clone(&self) -> BinanceLevel
fn clone(&self) -> BinanceLevel
Returns a copy 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 BinanceLevel
impl Debug for BinanceLevel
source§impl<'de> Deserialize<'de> for BinanceLevel
impl<'de> Deserialize<'de> for BinanceLevel
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<BinanceLevel> for Level
impl From<BinanceLevel> for Level
source§fn from(level: BinanceLevel) -> Self
fn from(level: BinanceLevel) -> Self
Converts to this type from the input type.
source§impl PartialEq<BinanceLevel> for BinanceLevel
impl PartialEq<BinanceLevel> for BinanceLevel
source§fn eq(&self, other: &BinanceLevel) -> bool
fn eq(&self, other: &BinanceLevel) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<BinanceLevel> for BinanceLevel
impl PartialOrd<BinanceLevel> for BinanceLevel
source§fn partial_cmp(&self, other: &BinanceLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &BinanceLevel) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more