pub struct BacktestSummary {
pub events_processed: usize,
pub actions_applied: usize,
pub initial_value: f64,
pub final_value: f64,
pub total_return: f64,
pub max_drawdown: f64,
}Expand description
Aggregate metrics for a replay.
Fields§
§events_processed: usizeEvents replayed.
actions_applied: usizeDecisions applied.
initial_value: f64Value before the first event.
final_value: f64Value after the last event.
total_return: f64final_value / initial_value - 1.
max_drawdown: f64Largest peak-to-trough decline as a fraction of the peak.
Trait Implementations§
Source§impl Clone for BacktestSummary
impl Clone for BacktestSummary
Source§fn clone(&self) -> BacktestSummary
fn clone(&self) -> BacktestSummary
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 BacktestSummary
impl Debug for BacktestSummary
Source§impl<'de> Deserialize<'de> for BacktestSummary
impl<'de> Deserialize<'de> for BacktestSummary
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 for BacktestSummary
impl PartialEq for BacktestSummary
Source§impl Serialize for BacktestSummary
impl Serialize for BacktestSummary
impl StructuralPartialEq for BacktestSummary
Auto Trait Implementations§
impl Freeze for BacktestSummary
impl RefUnwindSafe for BacktestSummary
impl Send for BacktestSummary
impl Sync for BacktestSummary
impl Unpin for BacktestSummary
impl UnsafeUnpin for BacktestSummary
impl UnwindSafe for BacktestSummary
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