pub struct BacktestEquityPoint {
pub ts_ms: i64,
pub equity: String,
pub net_pnl: String,
pub price: Option<String>,
}Expand description
Equity curve point emitted by backtests.
Fields§
§ts_ms: i64Timestamp in milliseconds.
equity: StringAccount equity serialized as a decimal string.
net_pnl: StringNet PnL serialized as a decimal string.
price: Option<String>Optional reference price at this point.
Trait Implementations§
Source§impl Clone for BacktestEquityPoint
impl Clone for BacktestEquityPoint
Source§fn clone(&self) -> BacktestEquityPoint
fn clone(&self) -> BacktestEquityPoint
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 BacktestEquityPoint
impl Debug for BacktestEquityPoint
Source§impl<'de> Deserialize<'de> for BacktestEquityPoint
impl<'de> Deserialize<'de> for BacktestEquityPoint
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
Auto Trait Implementations§
impl Freeze for BacktestEquityPoint
impl RefUnwindSafe for BacktestEquityPoint
impl Send for BacktestEquityPoint
impl Sync for BacktestEquityPoint
impl Unpin for BacktestEquityPoint
impl UnsafeUnpin for BacktestEquityPoint
impl UnwindSafe for BacktestEquityPoint
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