pub struct ReportCycleQuote {
pub fiscal_year: Option<i32>,
pub financial_type: Option<i32>,
pub period_text: Option<String>,
pub pub_trading_day: Option<i64>,
pub pub_trading_day_str: Option<String>,
pub pub_type: Option<i32>,
pub price_info_index: Option<i32>,
pub item_list: Vec<PricePerformanceRow>,
}Expand description
单期财报周期的行情数据,包含财报元信息及财报日前后若干交易日的价格序列
Fields§
§fiscal_year: Option<i32>财务年度,如 2024
financial_type: Option<i32>财报类型,详见 Qot_Common.F10Type 定义
period_text: Option<String>财报周期,如 “2024/Q3”、“2024/FY”
pub_trading_day: Option<i64>财报发布对应的交易日时间戳(秒)
pub_trading_day_str: Option<String>财报发布交易日字符串,格式 YYYY-MM-DD,对应市场时区
pub_type: Option<i32>财报发布时间类型,详见 Qot_Common.EarningsPubTimeType 定义
price_info_index: Option<i32>itemList 中财报发布当日所在的下标(0-based);-1 表示无数据
item_list: Vec<PricePerformanceRow>财报日前后的交易日行情列表,按时间升序排列
Implementations§
Source§impl ReportCycleQuote
impl ReportCycleQuote
Sourcepub fn fiscal_year(&self) -> i32
pub fn fiscal_year(&self) -> i32
Returns the value of fiscal_year, or the default value if fiscal_year is unset.
Sourcepub fn financial_type(&self) -> i32
pub fn financial_type(&self) -> i32
Returns the value of financial_type, or the default value if financial_type is unset.
Sourcepub fn period_text(&self) -> &str
pub fn period_text(&self) -> &str
Returns the value of period_text, or the default value if period_text is unset.
Sourcepub fn pub_trading_day(&self) -> i64
pub fn pub_trading_day(&self) -> i64
Returns the value of pub_trading_day, or the default value if pub_trading_day is unset.
Sourcepub fn pub_trading_day_str(&self) -> &str
pub fn pub_trading_day_str(&self) -> &str
Returns the value of pub_trading_day_str, or the default value if pub_trading_day_str is unset.
Sourcepub fn pub_type(&self) -> EarningsPubTimeType
pub fn pub_type(&self) -> EarningsPubTimeType
Returns the enum value of pub_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_pub_type(&mut self, value: EarningsPubTimeType)
pub fn set_pub_type(&mut self, value: EarningsPubTimeType)
Sets pub_type to the provided enum value.
Sourcepub fn price_info_index(&self) -> i32
pub fn price_info_index(&self) -> i32
Returns the value of price_info_index, or the default value if price_info_index is unset.
Trait Implementations§
Source§impl Clone for ReportCycleQuote
impl Clone for ReportCycleQuote
Source§fn clone(&self) -> ReportCycleQuote
fn clone(&self) -> ReportCycleQuote
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReportCycleQuote
impl Debug for ReportCycleQuote
Source§impl Default for ReportCycleQuote
impl Default for ReportCycleQuote
Source§impl<'de> Deserialize<'de> for ReportCycleQuotewhere
ReportCycleQuote: Default,
impl<'de> Deserialize<'de> for ReportCycleQuotewhere
ReportCycleQuote: 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 ReportCycleQuote
impl Message for ReportCycleQuote
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.