pub struct EquitySnapshotExData {Show 16 fields
pub issued_shares: i64,
pub issued_market_val: f64,
pub net_asset: f64,
pub net_profit: f64,
pub earnings_pershare: f64,
pub outstanding_shares: i64,
pub outstanding_market_val: f64,
pub net_asset_pershare: f64,
pub ey_rate: f64,
pub pe_rate: f64,
pub pb_rate: f64,
pub pe_ttm_rate: f64,
pub dividend_ttm: Option<f64>,
pub dividend_ratio_ttm: Option<f64>,
pub dividend_lfy: Option<f64>,
pub dividend_lfy_ratio: Option<f64>,
}Expand description
正股类型额外数据
Fields§
发行股本,即总股本
issued_market_val: f64总市值 =总股本*当前价格(单位:元)
net_asset: f64资产净值
net_profit: f64盈利(亏损)
每股盈利
流通股本
outstanding_market_val: f64流通市值 =流通股本*当前价格(单位:元)
每股净资产
ey_rate: f64收益率(该字段为百分比字段,默认不展示%,如20实际对应20%)
pe_rate: f64市盈率
pb_rate: f64市净率
pe_ttm_rate: f64市盈率TTM
dividend_ttm: Option<f64>股息TTM,派息
dividend_ratio_ttm: Option<f64>股息率TTM(该字段为百分比字段,默认不展示%,如20实际对应20%)
dividend_lfy: Option<f64>股息LFY,上一年度派息
dividend_lfy_ratio: Option<f64>股息率LFY(该字段为百分比字段,默认不展示%,如20实际对应20%)
Implementations§
Source§impl EquitySnapshotExData
impl EquitySnapshotExData
Sourcepub fn dividend_ttm(&self) -> f64
pub fn dividend_ttm(&self) -> f64
Returns the value of dividend_ttm, or the default value if dividend_ttm is unset.
Sourcepub fn dividend_ratio_ttm(&self) -> f64
pub fn dividend_ratio_ttm(&self) -> f64
Returns the value of dividend_ratio_ttm, or the default value if dividend_ratio_ttm is unset.
Sourcepub fn dividend_lfy(&self) -> f64
pub fn dividend_lfy(&self) -> f64
Returns the value of dividend_lfy, or the default value if dividend_lfy is unset.
Sourcepub fn dividend_lfy_ratio(&self) -> f64
pub fn dividend_lfy_ratio(&self) -> f64
Returns the value of dividend_lfy_ratio, or the default value if dividend_lfy_ratio is unset.
Trait Implementations§
Source§impl Clone for EquitySnapshotExData
impl Clone for EquitySnapshotExData
Source§fn clone(&self) -> EquitySnapshotExData
fn clone(&self) -> EquitySnapshotExData
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 EquitySnapshotExData
impl Debug for EquitySnapshotExData
Source§impl Default for EquitySnapshotExData
impl Default for EquitySnapshotExData
Source§impl<'de> Deserialize<'de> for EquitySnapshotExDatawhere
EquitySnapshotExData: Default,
impl<'de> Deserialize<'de> for EquitySnapshotExDatawhere
EquitySnapshotExData: 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 EquitySnapshotExData
impl Message for EquitySnapshotExData
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 EquitySnapshotExData
impl PartialEq for EquitySnapshotExData
Source§impl Serialize for EquitySnapshotExData
impl Serialize for EquitySnapshotExData
impl Copy for EquitySnapshotExData
impl StructuralPartialEq for EquitySnapshotExData
Auto Trait Implementations§
impl Freeze for EquitySnapshotExData
impl RefUnwindSafe for EquitySnapshotExData
impl Send for EquitySnapshotExData
impl Sync for EquitySnapshotExData
impl Unpin for EquitySnapshotExData
impl UnwindSafe for EquitySnapshotExData
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