pub struct MarketDistribution {
pub sections: Vec<DistributionSection>,
pub total: Option<i32>,
pub ranking: Option<i32>,
pub average_value: Option<f64>,
pub median_value: Option<f64>,
}Expand description
市场分布
Fields§
§sections: Vec<DistributionSection>区间分布(降序)
total: Option<i32>市场总数 / 成分股总数
ranking: Option<i32>该股票估值在市场中的排名(指数无)
average_value: Option<f64>市场估值均值(指数无)
median_value: Option<f64>市场估值中位数(指数无)
Implementations§
Source§impl MarketDistribution
impl MarketDistribution
Sourcepub fn ranking(&self) -> i32
pub fn ranking(&self) -> i32
Returns the value of ranking, or the default value if ranking is unset.
Sourcepub fn average_value(&self) -> f64
pub fn average_value(&self) -> f64
Returns the value of average_value, or the default value if average_value is unset.
Sourcepub fn median_value(&self) -> f64
pub fn median_value(&self) -> f64
Returns the value of median_value, or the default value if median_value is unset.
Trait Implementations§
Source§impl Clone for MarketDistribution
impl Clone for MarketDistribution
Source§fn clone(&self) -> MarketDistribution
fn clone(&self) -> MarketDistribution
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 MarketDistribution
impl Debug for MarketDistribution
Source§impl Default for MarketDistribution
impl Default for MarketDistribution
Source§impl<'de> Deserialize<'de> for MarketDistributionwhere
MarketDistribution: Default,
impl<'de> Deserialize<'de> for MarketDistributionwhere
MarketDistribution: Default,
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 MarketDistribution
impl Message for MarketDistribution
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 MarketDistribution
impl PartialEq for MarketDistribution
Source§impl Serialize for MarketDistribution
impl Serialize for MarketDistribution
impl StructuralPartialEq for MarketDistribution
Auto Trait Implementations§
impl Freeze for MarketDistribution
impl RefUnwindSafe for MarketDistribution
impl Send for MarketDistribution
impl Sync for MarketDistribution
impl Unpin for MarketDistribution
impl UnsafeUnpin for MarketDistribution
impl UnwindSafe for MarketDistribution
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