pub struct EquityViewportBucket {
pub bucket_index: i64,
pub display_time: Option<Timestamp>,
pub observation_time: Option<Timestamp>,
pub source_point_count: i64,
pub open_equity: Option<String>,
pub high_equity: Option<String>,
pub low_equity: Option<String>,
pub close_equity: Option<String>,
pub interval_return_pct: Option<f64>,
pub min_drawdown_pct: Option<f64>,
}Expand description
A strategy equity bucket on comparison_grid_v1. Decimal money values stay as base-10 text so contract consumers do not lose precision.
Fields§
§bucket_index: i64§display_time: Option<Timestamp>§observation_time: Option<Timestamp>§source_point_count: i64§open_equity: Option<String>§high_equity: Option<String>§low_equity: Option<String>§close_equity: Option<String>§interval_return_pct: Option<f64>§min_drawdown_pct: Option<f64>Implementations§
Source§impl EquityViewportBucket
impl EquityViewportBucket
Sourcepub fn open_equity(&self) -> &str
pub fn open_equity(&self) -> &str
Returns the value of open_equity, or the default value if open_equity is unset.
Sourcepub fn high_equity(&self) -> &str
pub fn high_equity(&self) -> &str
Returns the value of high_equity, or the default value if high_equity is unset.
Sourcepub fn low_equity(&self) -> &str
pub fn low_equity(&self) -> &str
Returns the value of low_equity, or the default value if low_equity is unset.
Sourcepub fn close_equity(&self) -> &str
pub fn close_equity(&self) -> &str
Returns the value of close_equity, or the default value if close_equity is unset.
Sourcepub fn interval_return_pct(&self) -> f64
pub fn interval_return_pct(&self) -> f64
Returns the value of interval_return_pct, or the default value if interval_return_pct is unset.
Sourcepub fn min_drawdown_pct(&self) -> f64
pub fn min_drawdown_pct(&self) -> f64
Returns the value of min_drawdown_pct, or the default value if min_drawdown_pct is unset.
Trait Implementations§
Source§impl Clone for EquityViewportBucket
impl Clone for EquityViewportBucket
Source§fn clone(&self) -> EquityViewportBucket
fn clone(&self) -> EquityViewportBucket
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 EquityViewportBucket
impl Debug for EquityViewportBucket
Source§impl Default for EquityViewportBucket
impl Default for EquityViewportBucket
Source§impl Message for EquityViewportBucket
impl Message for EquityViewportBucket
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 EquityViewportBucket
impl PartialEq for EquityViewportBucket
impl StructuralPartialEq for EquityViewportBucket
Auto Trait Implementations§
impl Freeze for EquityViewportBucket
impl RefUnwindSafe for EquityViewportBucket
impl Send for EquityViewportBucket
impl Sync for EquityViewportBucket
impl Unpin for EquityViewportBucket
impl UnsafeUnpin for EquityViewportBucket
impl UnwindSafe for EquityViewportBucket
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request