pub struct Statistic {
pub total_count: Option<u64>,
pub profit_prob: Option<f64>,
pub rise_upper_bound: Option<f64>,
pub rise_lower_bound: Option<f64>,
pub annual_period: Option<u32>,
}Fields§
§total_count: Option<u64>§profit_prob: Option<f64>§rise_upper_bound: Option<f64>§rise_lower_bound: Option<f64>§annual_period: Option<u32>Implementations§
Source§impl Statistic
impl Statistic
Sourcepub fn total_count(&self) -> u64
pub fn total_count(&self) -> u64
Returns the value of total_count, or the default value if total_count is unset.
Sourcepub fn profit_prob(&self) -> f64
pub fn profit_prob(&self) -> f64
Returns the value of profit_prob, or the default value if profit_prob is unset.
Sourcepub fn rise_upper_bound(&self) -> f64
pub fn rise_upper_bound(&self) -> f64
Returns the value of rise_upper_bound, or the default value if rise_upper_bound is unset.
Sourcepub fn rise_lower_bound(&self) -> f64
pub fn rise_lower_bound(&self) -> f64
Returns the value of rise_lower_bound, or the default value if rise_lower_bound is unset.
Sourcepub fn annual_period(&self) -> u32
pub fn annual_period(&self) -> u32
Returns the value of annual_period, or the default value if annual_period is unset.
Trait Implementations§
impl Copy for Statistic
Source§impl<'de> Deserialize<'de> for Statistic
impl<'de> Deserialize<'de> for Statistic
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 Statistic
impl Message for Statistic
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.impl StructuralPartialEq for Statistic
Auto Trait Implementations§
impl Freeze for Statistic
impl RefUnwindSafe for Statistic
impl Send for Statistic
impl Sync for Statistic
impl Unpin for Statistic
impl UnsafeUnpin for Statistic
impl UnwindSafe for Statistic
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