pub struct DividendRankItem {Show 14 fields
pub security: Security,
pub name: Option<String>,
pub industry: Option<String>,
pub cur_price: Option<f64>,
pub change_rate: Option<f64>,
pub change_amount: Option<f64>,
pub market_cap: Option<f64>,
pub dividend_yield_ttm: Option<f64>,
pub avg_dividend_yield5_y: Option<f64>,
pub distribution_frequency: Option<i32>,
pub dividend_grow_year: Option<i32>,
pub dividends_ttm: Option<f64>,
pub payout_ratio_lfy: Option<f64>,
pub next_payable_date: Option<String>,
}Expand description
股息排行数据项
Fields§
§security: Security股票
name: Option<String>名称
industry: Option<String>行业
cur_price: Option<f64>行情
最新价
change_rate: Option<f64>今日涨跌幅 (%)
change_amount: Option<f64>今日涨跌额
market_cap: Option<f64>市值
dividend_yield_ttm: Option<f64>股息
股息率TTM (%)
avg_dividend_yield5_y: Option<f64>5年平均股息率 (%)
distribution_frequency: Option<i32>派息频率 (1:年派, 2:半年派, 3:季派, 4:月派),不支持HK市场
dividend_grow_year: Option<i32>股息连续增长年数
dividends_ttm: Option<f64>股息TTM (金额)
payout_ratio_lfy: Option<f64>股息支付率LFY (%)
next_payable_date: Option<String>下次派息日 (“YYYY-MM-DD”)
Implementations§
Source§impl DividendRankItem
impl DividendRankItem
Sourcepub fn industry(&self) -> &str
pub fn industry(&self) -> &str
Returns the value of industry, or the default value if industry is unset.
Sourcepub fn cur_price(&self) -> f64
pub fn cur_price(&self) -> f64
Returns the value of cur_price, or the default value if cur_price is unset.
Sourcepub fn change_rate(&self) -> f64
pub fn change_rate(&self) -> f64
Returns the value of change_rate, or the default value if change_rate is unset.
Sourcepub fn change_amount(&self) -> f64
pub fn change_amount(&self) -> f64
Returns the value of change_amount, or the default value if change_amount is unset.
Sourcepub fn market_cap(&self) -> f64
pub fn market_cap(&self) -> f64
Returns the value of market_cap, or the default value if market_cap is unset.
Sourcepub fn dividend_yield_ttm(&self) -> f64
pub fn dividend_yield_ttm(&self) -> f64
Returns the value of dividend_yield_ttm, or the default value if dividend_yield_ttm is unset.
Sourcepub fn avg_dividend_yield5_y(&self) -> f64
pub fn avg_dividend_yield5_y(&self) -> f64
Returns the value of avg_dividend_yield5_y, or the default value if avg_dividend_yield5_y is unset.
Sourcepub fn distribution_frequency(&self) -> i32
pub fn distribution_frequency(&self) -> i32
Returns the value of distribution_frequency, or the default value if distribution_frequency is unset.
Sourcepub fn dividend_grow_year(&self) -> i32
pub fn dividend_grow_year(&self) -> i32
Returns the value of dividend_grow_year, or the default value if dividend_grow_year is unset.
Sourcepub fn dividends_ttm(&self) -> f64
pub fn dividends_ttm(&self) -> f64
Returns the value of dividends_ttm, or the default value if dividends_ttm is unset.
Sourcepub fn payout_ratio_lfy(&self) -> f64
pub fn payout_ratio_lfy(&self) -> f64
Returns the value of payout_ratio_lfy, or the default value if payout_ratio_lfy is unset.
Sourcepub fn next_payable_date(&self) -> &str
pub fn next_payable_date(&self) -> &str
Returns the value of next_payable_date, or the default value if next_payable_date is unset.
Trait Implementations§
Source§impl Clone for DividendRankItem
impl Clone for DividendRankItem
Source§fn clone(&self) -> DividendRankItem
fn clone(&self) -> DividendRankItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DividendRankItem
impl Debug for DividendRankItem
Source§impl Default for DividendRankItem
impl Default for DividendRankItem
Source§impl<'de> Deserialize<'de> for DividendRankItemwhere
DividendRankItem: Default,
impl<'de> Deserialize<'de> for DividendRankItemwhere
DividendRankItem: 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>,
Source§impl Message for DividendRankItem
impl Message for DividendRankItem
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.