Struct barter_data::subscription::liquidation::Liquidation
source · pub struct Liquidation {
pub side: Side,
pub price: f64,
pub quantity: f64,
pub time: DateTime<Utc>,
}Expand description
Normalised Barter Liquidation model.
Fields§
§side: Side§price: f64§quantity: f64§time: DateTime<Utc>Trait Implementations§
source§impl Clone for Liquidation
impl Clone for Liquidation
source§fn clone(&self) -> Liquidation
fn clone(&self) -> Liquidation
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 Liquidation
impl Debug for Liquidation
source§impl<'de> Deserialize<'de> for Liquidation
impl<'de> Deserialize<'de> for Liquidation
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<Liquidation> for Liquidation
impl PartialEq<Liquidation> for Liquidation
source§fn eq(&self, other: &Liquidation) -> bool
fn eq(&self, other: &Liquidation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<Liquidation> for Liquidation
impl PartialOrd<Liquidation> for Liquidation
source§fn partial_cmp(&self, other: &Liquidation) -> Option<Ordering>
fn partial_cmp(&self, other: &Liquidation) -> 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