pub struct Item {
pub stock_id: Option<u64>,
pub valuation_type: Option<i32>,
pub interval_type: Option<i32>,
pub valuation_data: Option<ValuationData>,
pub plate_statistics: Option<PlateStatistics>,
pub plate_data: Option<PlateData>,
pub market_statistics: Option<MarketStatistics>,
pub valuation_percentile: Option<u64>,
}Fields§
§stock_id: Option<u64>§valuation_type: Option<i32>§interval_type: Option<i32>§valuation_data: Option<ValuationData>§plate_statistics: Option<PlateStatistics>§plate_data: Option<PlateData>§market_statistics: Option<MarketStatistics>§valuation_percentile: Option<u64>Implementations§
Source§impl Item
impl Item
Sourcepub fn stock_id(&self) -> u64
pub fn stock_id(&self) -> u64
Returns the value of stock_id, or the default value if stock_id is unset.
Sourcepub fn valuation_type(&self) -> ValuationType
pub fn valuation_type(&self) -> ValuationType
Returns the enum value of valuation_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_valuation_type(&mut self, value: ValuationType)
pub fn set_valuation_type(&mut self, value: ValuationType)
Sets valuation_type to the provided enum value.
Sourcepub fn interval_type(&self) -> IntervalType
pub fn interval_type(&self) -> IntervalType
Returns the enum value of interval_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_interval_type(&mut self, value: IntervalType)
pub fn set_interval_type(&mut self, value: IntervalType)
Sets interval_type to the provided enum value.
Sourcepub fn valuation_percentile(&self) -> u64
pub fn valuation_percentile(&self) -> u64
Returns the value of valuation_percentile, or the default value if valuation_percentile is unset.
Trait Implementations§
Source§impl Message for Item
impl Message for Item
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 Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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