pub struct RiskSummary {
pub mean_return: f64,
pub std_dev: f64,
pub annualized_return: f64,
pub annualized_volatility: f64,
pub sharpe_ratio: Option<f64>,
pub sortino_ratio: Option<f64>,
pub value_at_risk: f64,
pub conditional_value_at_risk: f64,
pub max_drawdown: DrawdownSummary,
}Fields§
§mean_return: f64§std_dev: f64§annualized_return: f64§annualized_volatility: f64§sharpe_ratio: Option<f64>§sortino_ratio: Option<f64>§value_at_risk: f64§conditional_value_at_risk: f64§max_drawdown: DrawdownSummaryTrait Implementations§
Source§impl Clone for RiskSummary
impl Clone for RiskSummary
Source§fn clone(&self) -> RiskSummary
fn clone(&self) -> RiskSummary
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 RiskSummary
impl Debug for RiskSummary
Source§impl<'de> Deserialize<'de> for RiskSummary
impl<'de> Deserialize<'de> for RiskSummary
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 RiskSummary
impl PartialEq for RiskSummary
Source§fn eq(&self, other: &RiskSummary) -> bool
fn eq(&self, other: &RiskSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RiskSummary
impl Serialize for RiskSummary
impl Copy for RiskSummary
impl StructuralPartialEq for RiskSummary
Auto Trait Implementations§
impl Freeze for RiskSummary
impl RefUnwindSafe for RiskSummary
impl Send for RiskSummary
impl Sync for RiskSummary
impl Unpin for RiskSummary
impl UnsafeUnpin for RiskSummary
impl UnwindSafe for RiskSummary
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