pub struct ReportedView {Show 21 fields
pub id: String,
pub hypothesis: String,
pub claim: String,
pub instrument: String,
pub engine: String,
pub from: String,
pub to: String,
pub interval: String,
pub dataset: String,
pub strategy: String,
pub verdict: String,
pub reasons: Vec<String>,
pub trades: u32,
pub trials: Option<u32>,
pub total_return: Option<f64>,
pub excess_return: Option<f64>,
pub sharpe: Option<f64>,
pub max_drawdown: Option<f64>,
pub recorded_at: String,
pub author: String,
pub attachments: Vec<Attachment>,
}Expand description
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
A finding an engine Arvo did not run computed, judged by Arvo
(ADR-0026). Shown as what it is: the numbers and the verdict, and where
the data lives.
Fields§
§id: String§hypothesis: String§claim: String§instrument: String§engine: String§from: String§to: String§interval: String§dataset: Stringid@version: the engine’s own dataset, not in Arvo’s library.
strategy: String§verdict: String§reasons: Vec<String>§trades: u32§trials: Option<u32>§total_return: Option<f64>Absent when there was no benchmark to judge against.
excess_return: Option<f64>§sharpe: Option<f64>§max_drawdown: Option<f64>§recorded_at: String§attachments: Vec<Attachment>The files kept with it: a report, a figure, the trades (#157).
Implementations§
Source§impl ReportedView
impl ReportedView
Sourcepub fn trials(&self) -> u32
pub fn trials(&self) -> u32
Returns the value of trials, or the default value if trials is unset.
Sourcepub fn total_return(&self) -> f64
pub fn total_return(&self) -> f64
Returns the value of total_return, or the default value if total_return is unset.
Sourcepub fn excess_return(&self) -> f64
pub fn excess_return(&self) -> f64
Returns the value of excess_return, or the default value if excess_return is unset.
Sourcepub fn sharpe(&self) -> f64
pub fn sharpe(&self) -> f64
Returns the value of sharpe, or the default value if sharpe is unset.
Sourcepub fn max_drawdown(&self) -> f64
pub fn max_drawdown(&self) -> f64
Returns the value of max_drawdown, or the default value if max_drawdown is unset.
Trait Implementations§
Source§impl Clone for ReportedView
impl Clone for ReportedView
Source§impl Debug for ReportedView
impl Debug for ReportedView
Source§impl Default for ReportedView
impl Default for ReportedView
Source§impl<'de> Deserialize<'de> for ReportedView
impl<'de> Deserialize<'de> for ReportedView
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>,
Source§impl Message for ReportedView
impl Message for ReportedView
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.