pub struct ValuationData {
pub current_value: Option<i64>,
pub average_value: Option<i64>,
pub average_value_minus_1_stddev: Option<i64>,
pub average_value_plus_1_stddev: Option<i64>,
pub market_cap: Option<i64>,
pub historical_items: Vec<HistoricalItem>,
pub has_plate_hist_average: Option<bool>,
pub forward_value: Option<i64>,
}Fields§
§current_value: Option<i64>§average_value: Option<i64>§average_value_minus_1_stddev: Option<i64>§average_value_plus_1_stddev: Option<i64>§market_cap: Option<i64>§historical_items: Vec<HistoricalItem>§has_plate_hist_average: Option<bool>§forward_value: Option<i64>Implementations§
Source§impl ValuationData
impl ValuationData
Sourcepub fn current_value(&self) -> i64
pub fn current_value(&self) -> i64
Returns the value of current_value, or the default value if current_value is unset.
Sourcepub fn average_value(&self) -> i64
pub fn average_value(&self) -> i64
Returns the value of average_value, or the default value if average_value is unset.
Sourcepub fn average_value_minus_1_stddev(&self) -> i64
pub fn average_value_minus_1_stddev(&self) -> i64
Returns the value of average_value_minus_1_stddev, or the default value if average_value_minus_1_stddev is unset.
Sourcepub fn average_value_plus_1_stddev(&self) -> i64
pub fn average_value_plus_1_stddev(&self) -> i64
Returns the value of average_value_plus_1_stddev, or the default value if average_value_plus_1_stddev is unset.
Sourcepub fn market_cap(&self) -> i64
pub fn market_cap(&self) -> i64
Returns the value of market_cap, or the default value if market_cap is unset.
Sourcepub fn has_plate_hist_average(&self) -> bool
pub fn has_plate_hist_average(&self) -> bool
Returns the value of has_plate_hist_average, or the default value if has_plate_hist_average is unset.
Sourcepub fn forward_value(&self) -> i64
pub fn forward_value(&self) -> i64
Returns the value of forward_value, or the default value if forward_value is unset.
Trait Implementations§
Source§impl Clone for ValuationData
impl Clone for ValuationData
Source§fn clone(&self) -> ValuationData
fn clone(&self) -> ValuationData
Returns a duplicate of the value. Read more
1.0.0 · 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 ValuationData
impl Debug for ValuationData
Source§impl Default for ValuationData
impl Default for ValuationData
Source§impl Message for ValuationData
impl Message for ValuationData
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 ValuationData
impl PartialEq for ValuationData
impl StructuralPartialEq for ValuationData
Auto Trait Implementations§
impl Freeze for ValuationData
impl RefUnwindSafe for ValuationData
impl Send for ValuationData
impl Sync for ValuationData
impl Unpin for ValuationData
impl UnsafeUnpin for ValuationData
impl UnwindSafe for ValuationData
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