pub struct RatingChangeItem {
pub security: Option<Security>,
pub name: Option<String>,
pub rating: Option<i32>,
pub last_rating: Option<i32>,
pub target_price: Option<f64>,
pub last_target_price: Option<f64>,
pub change_type: Option<i32>,
pub institution_name: Option<String>,
pub recommendation_date: Option<String>,
pub last_recommendation_date: Option<String>,
}Fields§
§security: Option<Security>股票
name: Option<String>名称
rating: Option<i32>当前评级 RatingLevel
last_rating: Option<i32>上次评级 RatingLevel
target_price: Option<f64>当前目标价
last_target_price: Option<f64>上次目标价
change_type: Option<i32>RatingChangeType
institution_name: Option<String>机构名称
recommendation_date: Option<String>推荐日期(字符串,如“2025-06-15“)
last_recommendation_date: Option<String>上次推荐日期(字符串,如“2025-06-15“)
Implementations§
Source§impl RatingChangeItem
impl RatingChangeItem
Sourcepub fn rating(&self) -> i32
pub fn rating(&self) -> i32
Returns the value of rating, or the default value if rating is unset.
Sourcepub fn last_rating(&self) -> i32
pub fn last_rating(&self) -> i32
Returns the value of last_rating, or the default value if last_rating is unset.
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 last_target_price(&self) -> f64
pub fn last_target_price(&self) -> f64
Returns the value of last_target_price, or the default value if last_target_price is unset.
Sourcepub fn change_type(&self) -> i32
pub fn change_type(&self) -> i32
Returns the value of change_type, or the default value if change_type is unset.
Sourcepub fn institution_name(&self) -> &str
pub fn institution_name(&self) -> &str
Returns the value of institution_name, or the default value if institution_name is unset.
Sourcepub fn recommendation_date(&self) -> &str
pub fn recommendation_date(&self) -> &str
Returns the value of recommendation_date, or the default value if recommendation_date is unset.
Sourcepub fn last_recommendation_date(&self) -> &str
pub fn last_recommendation_date(&self) -> &str
Returns the value of last_recommendation_date, or the default value if last_recommendation_date is unset.
Trait Implementations§
Source§impl Clone for RatingChangeItem
impl Clone for RatingChangeItem
Source§fn clone(&self) -> RatingChangeItem
fn clone(&self) -> RatingChangeItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RatingChangeItem
impl Debug for RatingChangeItem
Source§impl Default for RatingChangeItem
impl Default for RatingChangeItem
Source§impl<'de> Deserialize<'de> for RatingChangeItemwhere
RatingChangeItem: Default,
impl<'de> Deserialize<'de> for RatingChangeItemwhere
RatingChangeItem: 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 RatingChangeItem
impl Message for RatingChangeItem
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.