Struct barter::statistic::metric::EquityPoint
source · pub struct EquityPoint {
pub time: DateTime<Utc>,
pub total: f64,
}
Expand description
Total equity at a point in time - equates to Balance.total
.
Fields§
§time: DateTime<Utc>
§total: f64
Trait Implementations§
source§impl Clone for EquityPoint
impl Clone for EquityPoint
source§fn clone(&self) -> EquityPoint
fn clone(&self) -> EquityPoint
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 EquityPoint
impl Debug for EquityPoint
source§impl Default for EquityPoint
impl Default for EquityPoint
source§impl<'de> Deserialize<'de> for EquityPoint
impl<'de> Deserialize<'de> for EquityPoint
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<Balance> for EquityPoint
impl From<Balance> for EquityPoint
source§impl PartialEq<EquityPoint> for EquityPoint
impl PartialEq<EquityPoint> for EquityPoint
source§fn eq(&self, other: &EquityPoint) -> bool
fn eq(&self, other: &EquityPoint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<EquityPoint> for EquityPoint
impl PartialOrd<EquityPoint> for EquityPoint
source§fn partial_cmp(&self, other: &EquityPoint) -> Option<Ordering>
fn partial_cmp(&self, other: &EquityPoint) -> 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