pub struct PerformanceMetrics {
pub total_return: f64,
pub annualized_return: f64,
pub annualized_volatility: f64,
pub sharpe_ratio: f64,
pub max_drawdown: f64,
pub max_drawdown_duration: u32,
pub max_drawdown_start: Option<NaiveDate>,
pub max_drawdown_trough: Option<NaiveDate>,
pub max_drawdown_end: Option<NaiveDate>,
pub best_day: f64,
pub worst_day: f64,
}Fields§
§total_return: f64§annualized_return: f64§annualized_volatility: f64§sharpe_ratio: f64§max_drawdown: f64§max_drawdown_duration: u32§max_drawdown_start: Option<NaiveDate>§max_drawdown_trough: Option<NaiveDate>§max_drawdown_end: Option<NaiveDate>§best_day: f64§worst_day: f64Trait Implementations§
Source§impl Clone for PerformanceMetrics
impl Clone for PerformanceMetrics
Source§fn clone(&self) -> PerformanceMetrics
fn clone(&self) -> PerformanceMetrics
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PerformanceMetrics
impl RefUnwindSafe for PerformanceMetrics
impl Send for PerformanceMetrics
impl Sync for PerformanceMetrics
impl Unpin for PerformanceMetrics
impl UnwindSafe for PerformanceMetrics
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