Struct barter_data::subscription::book::OrderBookL1
source · pub struct OrderBookL1 {
pub last_update_time: DateTime<Utc>,
pub best_bid: Level,
pub best_ask: Level,
}Expand description
Normalised Barter OrderBookL1 snapshot containing the latest best bid and ask.
Fields§
§last_update_time: DateTime<Utc>§best_bid: Level§best_ask: LevelTrait Implementations§
source§impl Clone for OrderBookL1
impl Clone for OrderBookL1
source§fn clone(&self) -> OrderBookL1
fn clone(&self) -> OrderBookL1
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 OrderBookL1
impl Debug for OrderBookL1
source§impl<'de> Deserialize<'de> for OrderBookL1
impl<'de> Deserialize<'de> for OrderBookL1
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<OrderBookL1> for OrderBookL1
impl PartialEq<OrderBookL1> for OrderBookL1
source§fn eq(&self, other: &OrderBookL1) -> bool
fn eq(&self, other: &OrderBookL1) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<OrderBookL1> for OrderBookL1
impl PartialOrd<OrderBookL1> for OrderBookL1
source§fn partial_cmp(&self, other: &OrderBookL1) -> Option<Ordering>
fn partial_cmp(&self, other: &OrderBookL1) -> 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