pub struct ExrightFactorItem {Show 32 fields
pub ex_time: Option<u32>,
pub fwd_a: Option<f64>,
pub fwd_b: Option<f64>,
pub bwd_a: Option<f64>,
pub bwd_b: Option<f64>,
pub sc_str: Option<String>,
pub tc_str: Option<String>,
pub en_str: Option<String>,
pub split_base: Option<u32>,
pub split_ert: Option<u32>,
pub join_base: Option<u32>,
pub join_ert: Option<u32>,
pub bonus_base: Option<u32>,
pub bonus_ert: Option<u32>,
pub transfer_base: Option<u32>,
pub transfer_ert: Option<u32>,
pub allot_base: Option<u32>,
pub allot_ert: Option<u32>,
pub allot_price: Option<u64>,
pub add_base: Option<u32>,
pub add_ert: Option<u32>,
pub add_price: Option<u64>,
pub dividend_base: Option<u32>,
pub dividend_amount: Option<u64>,
pub sp_dividend_base: Option<u32>,
pub sp_dividend_amount: Option<u64>,
pub spin_off_base: Option<u32>,
pub spin_off_ert: Option<u32>,
pub origin_fwd_a: Option<f64>,
pub origin_fwd_b: Option<f64>,
pub origin_bwd_a: Option<f64>,
pub origin_bwd_b: Option<f64>,
}Fields§
§ex_time: Option<u32>§fwd_a: Option<f64>前复权因子a(累积)
fwd_b: Option<f64>前复权因子b(累积)
bwd_a: Option<f64>后复权因子a(累积)
bwd_b: Option<f64>后复权因子b(累积)
sc_str: Option<String>简体中文描述
tc_str: Option<String>繁体中文描述
en_str: Option<String>英文描述
split_base: Option<u32>拆股(eg. 1拆5, Base为1, Ert为5)
split_ert: Option<u32>§join_base: Option<u32>合股(eg. 50合1, Base为50, Ert为1)
join_ert: Option<u32>§bonus_base: Option<u32>送股(eg. 10送3, Base为10, Ert为3)
bonus_ert: Option<u32>§transfer_base: Option<u32>转赠股(eg. 10转3, Base为10, Ert为3)
transfer_ert: Option<u32>§allot_base: Option<u32>配股(eg. 10送2, 配股价为6.3元,Base为10, Ert为2,Price为6300,放大100000倍)
allot_ert: Option<u32>§allot_price: Option<u64>§add_base: Option<u32>增发股(eg. 10送2, 增发股价为6.3元,Base为10, Ert为2,Price为6300,放大100000倍)
add_ert: Option<u32>§add_price: Option<u64>§dividend_base: Option<u32>现金分红(eg. 每10股派现0.5元,Base为10,Amount为500,放大100000倍)
dividend_amount: Option<u64>§sp_dividend_base: Option<u32>特别股息(eg. 每10股特别股息0.5元,Base为10,Amount为500,放大100000倍)
sp_dividend_amount: Option<u64>§spin_off_base: Option<u32>公司分立(eg. 公司一分为二,Base为1, Ert为2)
spin_off_ert: Option<u32>§origin_fwd_a: Option<f64>前复权因子a, 原始
origin_fwd_b: Option<f64>前复权因子b, 原始
origin_bwd_a: Option<f64>后复权因子a, 原始
origin_bwd_b: Option<f64>后复权因子b, 原始
Implementations§
Source§impl ExrightFactorItem
impl ExrightFactorItem
Sourcepub fn ex_time(&self) -> u32
pub fn ex_time(&self) -> u32
Returns the value of ex_time, or the default value if ex_time is unset.
Sourcepub fn sc_str(&self) -> &str
pub fn sc_str(&self) -> &str
Returns the value of sc_str, or the default value if sc_str is unset.
Sourcepub fn tc_str(&self) -> &str
pub fn tc_str(&self) -> &str
Returns the value of tc_str, or the default value if tc_str is unset.
Sourcepub fn en_str(&self) -> &str
pub fn en_str(&self) -> &str
Returns the value of en_str, or the default value if en_str is unset.
Sourcepub fn split_base(&self) -> u32
pub fn split_base(&self) -> u32
Returns the value of split_base, or the default value if split_base is unset.
Sourcepub fn split_ert(&self) -> u32
pub fn split_ert(&self) -> u32
Returns the value of split_ert, or the default value if split_ert is unset.
Sourcepub fn join_base(&self) -> u32
pub fn join_base(&self) -> u32
Returns the value of join_base, or the default value if join_base is unset.
Sourcepub fn join_ert(&self) -> u32
pub fn join_ert(&self) -> u32
Returns the value of join_ert, or the default value if join_ert is unset.
Sourcepub fn bonus_base(&self) -> u32
pub fn bonus_base(&self) -> u32
Returns the value of bonus_base, or the default value if bonus_base is unset.
Sourcepub fn bonus_ert(&self) -> u32
pub fn bonus_ert(&self) -> u32
Returns the value of bonus_ert, or the default value if bonus_ert is unset.
Sourcepub fn transfer_base(&self) -> u32
pub fn transfer_base(&self) -> u32
Returns the value of transfer_base, or the default value if transfer_base is unset.
Sourcepub fn transfer_ert(&self) -> u32
pub fn transfer_ert(&self) -> u32
Returns the value of transfer_ert, or the default value if transfer_ert is unset.
Sourcepub fn allot_base(&self) -> u32
pub fn allot_base(&self) -> u32
Returns the value of allot_base, or the default value if allot_base is unset.
Sourcepub fn allot_ert(&self) -> u32
pub fn allot_ert(&self) -> u32
Returns the value of allot_ert, or the default value if allot_ert is unset.
Sourcepub fn allot_price(&self) -> u64
pub fn allot_price(&self) -> u64
Returns the value of allot_price, or the default value if allot_price is unset.
Sourcepub fn add_base(&self) -> u32
pub fn add_base(&self) -> u32
Returns the value of add_base, or the default value if add_base is unset.
Sourcepub fn add_ert(&self) -> u32
pub fn add_ert(&self) -> u32
Returns the value of add_ert, or the default value if add_ert is unset.
Sourcepub fn add_price(&self) -> u64
pub fn add_price(&self) -> u64
Returns the value of add_price, or the default value if add_price is unset.
Sourcepub fn dividend_base(&self) -> u32
pub fn dividend_base(&self) -> u32
Returns the value of dividend_base, or the default value if dividend_base is unset.
Sourcepub fn dividend_amount(&self) -> u64
pub fn dividend_amount(&self) -> u64
Returns the value of dividend_amount, or the default value if dividend_amount is unset.
Sourcepub fn sp_dividend_base(&self) -> u32
pub fn sp_dividend_base(&self) -> u32
Returns the value of sp_dividend_base, or the default value if sp_dividend_base is unset.
Sourcepub fn sp_dividend_amount(&self) -> u64
pub fn sp_dividend_amount(&self) -> u64
Returns the value of sp_dividend_amount, or the default value if sp_dividend_amount is unset.
Sourcepub fn origin_fwd_a(&self) -> f64
pub fn origin_fwd_a(&self) -> f64
Returns the value of origin_fwd_a, or the default value if origin_fwd_a is unset.
Sourcepub fn origin_fwd_b(&self) -> f64
pub fn origin_fwd_b(&self) -> f64
Returns the value of origin_fwd_b, or the default value if origin_fwd_b is unset.
Sourcepub fn origin_bwd_a(&self) -> f64
pub fn origin_bwd_a(&self) -> f64
Returns the value of origin_bwd_a, or the default value if origin_bwd_a is unset.
Sourcepub fn origin_bwd_b(&self) -> f64
pub fn origin_bwd_b(&self) -> f64
Returns the value of origin_bwd_b, or the default value if origin_bwd_b is unset.
Sourcepub fn spin_off_base(&self) -> u32
pub fn spin_off_base(&self) -> u32
Returns the value of spin_off_base, or the default value if spin_off_base is unset.
Sourcepub fn spin_off_ert(&self) -> u32
pub fn spin_off_ert(&self) -> u32
Returns the value of spin_off_ert, or the default value if spin_off_ert is unset.
Trait Implementations§
Source§impl Clone for ExrightFactorItem
impl Clone for ExrightFactorItem
Source§fn clone(&self) -> ExrightFactorItem
fn clone(&self) -> ExrightFactorItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExrightFactorItem
impl Debug for ExrightFactorItem
Source§impl Default for ExrightFactorItem
impl Default for ExrightFactorItem
Source§impl Message for ExrightFactorItem
impl Message for ExrightFactorItem
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.