pub struct PlateDistribution {
pub plate: Option<Security>,
pub plate_name: Option<String>,
pub plate_average_value: Option<f64>,
pub plate_ranking: Option<i32>,
pub plate_stock_item_count: Option<i32>,
pub stock_items: Vec<PlateStockItem>,
}Expand description
行业分布
Fields§
§plate: Option<Security>所属板块
plate_name: Option<String>所属板块名称
plate_average_value: Option<f64>板块估值均值
plate_ranking: Option<i32>该股票估值在板块中的排名
plate_stock_item_count: Option<i32>板块个股总数
stock_items: Vec<PlateStockItem>板块成分股估值明细
Implementations§
Source§impl PlateDistribution
impl PlateDistribution
Sourcepub fn plate_name(&self) -> &str
pub fn plate_name(&self) -> &str
Returns the value of plate_name, or the default value if plate_name is unset.
Sourcepub fn plate_average_value(&self) -> f64
pub fn plate_average_value(&self) -> f64
Returns the value of plate_average_value, or the default value if plate_average_value is unset.
Sourcepub fn plate_ranking(&self) -> i32
pub fn plate_ranking(&self) -> i32
Returns the value of plate_ranking, or the default value if plate_ranking is unset.
Sourcepub fn plate_stock_item_count(&self) -> i32
pub fn plate_stock_item_count(&self) -> i32
Returns the value of plate_stock_item_count, or the default value if plate_stock_item_count is unset.
Trait Implementations§
Source§impl Clone for PlateDistribution
impl Clone for PlateDistribution
Source§fn clone(&self) -> PlateDistribution
fn clone(&self) -> PlateDistribution
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 PlateDistribution
impl Debug for PlateDistribution
Source§impl Default for PlateDistribution
impl Default for PlateDistribution
Source§impl<'de> Deserialize<'de> for PlateDistributionwhere
PlateDistribution: Default,
impl<'de> Deserialize<'de> for PlateDistributionwhere
PlateDistribution: 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 PlateDistribution
impl Message for PlateDistribution
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 PlateDistribution
impl PartialEq for PlateDistribution
Source§impl Serialize for PlateDistribution
impl Serialize for PlateDistribution
impl StructuralPartialEq for PlateDistribution
Auto Trait Implementations§
impl Freeze for PlateDistribution
impl RefUnwindSafe for PlateDistribution
impl Send for PlateDistribution
impl Sync for PlateDistribution
impl Unpin for PlateDistribution
impl UnsafeUnpin for PlateDistribution
impl UnwindSafe for PlateDistribution
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