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
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for ReportedView
impl Message for ReportedView
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ReportedView
impl PartialEq for ReportedView
Source§impl Serialize for ReportedView
impl Serialize for ReportedView
impl StructuralPartialEq for ReportedView
Auto Trait Implementations§
impl Freeze for ReportedView
impl RefUnwindSafe for ReportedView
impl Send for ReportedView
impl Sync for ReportedView
impl Unpin for ReportedView
impl UnsafeUnpin for ReportedView
impl UnwindSafe for ReportedView
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