pub struct RatingItem {
pub analyst_uid: Option<String>,
pub institution_uid: Option<String>,
pub rating: Option<i32>,
pub target_price: Option<f64>,
pub recommendation_date: Option<i64>,
pub recommendation_date_str: Option<String>,
pub rating_url: Option<String>,
pub update_time: Option<i64>,
pub update_time_str: Option<String>,
}Fields§
§analyst_uid: Option<String>分析师唯一标识
institution_uid: Option<String>机构唯一标识
rating: Option<i32>评级(详见 Qot_Common.ResearchRatingType 定义),仅返回 Sell(1)/Hold(3)/Buy(4),数值越大评级越高
target_price: Option<f64>目标价
recommendation_date: Option<i64>评级日期时间戳(秒)
recommendation_date_str: Option<String>评级日期字符串,格式 YYYY-MM-DD,对应市场时区
rating_url: Option<String>评级来源 URL
update_time: Option<i64>更新时间戳(秒)
update_time_str: Option<String>更新时间字符串,格式 YYYY-MM-DD,对应市场时区
Implementations§
Source§impl RatingItem
impl RatingItem
Sourcepub fn analyst_uid(&self) -> &str
pub fn analyst_uid(&self) -> &str
Returns the value of analyst_uid, or the default value if analyst_uid is unset.
Sourcepub fn institution_uid(&self) -> &str
pub fn institution_uid(&self) -> &str
Returns the value of institution_uid, or the default value if institution_uid is unset.
Sourcepub fn rating(&self) -> ResearchRatingType
pub fn rating(&self) -> ResearchRatingType
Returns the enum value of rating, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_rating(&mut self, value: ResearchRatingType)
pub fn set_rating(&mut self, value: ResearchRatingType)
Sets rating to the provided enum value.
Sourcepub fn target_price(&self) -> f64
pub fn target_price(&self) -> f64
Returns the value of target_price, or the default value if target_price is unset.
Sourcepub fn recommendation_date(&self) -> i64
pub fn recommendation_date(&self) -> i64
Returns the value of recommendation_date, or the default value if recommendation_date is unset.
Sourcepub fn recommendation_date_str(&self) -> &str
pub fn recommendation_date_str(&self) -> &str
Returns the value of recommendation_date_str, or the default value if recommendation_date_str is unset.
Sourcepub fn rating_url(&self) -> &str
pub fn rating_url(&self) -> &str
Returns the value of rating_url, or the default value if rating_url is unset.
Sourcepub fn update_time(&self) -> i64
pub fn update_time(&self) -> i64
Returns the value of update_time, or the default value if update_time is unset.
Sourcepub fn update_time_str(&self) -> &str
pub fn update_time_str(&self) -> &str
Returns the value of update_time_str, or the default value if update_time_str is unset.
Trait Implementations§
Source§impl Clone for RatingItem
impl Clone for RatingItem
Source§fn clone(&self) -> RatingItem
fn clone(&self) -> RatingItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RatingItem
impl Debug for RatingItem
Source§impl Default for RatingItem
impl Default for RatingItem
Source§impl<'de> Deserialize<'de> for RatingItemwhere
RatingItem: Default,
impl<'de> Deserialize<'de> for RatingItemwhere
RatingItem: 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 RatingItem
impl Message for RatingItem
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.