pub struct RatingItem {Show 15 fields
pub item_type: Option<i32>,
pub report_id: Option<u64>,
pub title: Option<String>,
pub time: Option<i64>,
pub url: Option<String>,
pub stock_id: Option<u64>,
pub news_unique_id: Option<String>,
pub futu_source: Option<String>,
pub content_status: Option<u32>,
pub news_content_type: Option<i32>,
pub link_type: Option<i32>,
pub pic_url: Option<String>,
pub is_auto_translated: Option<i32>,
pub show_translate_button: Option<bool>,
pub new_news_id: Option<String>,
}Fields§
§item_type: Option<i32>§report_id: Option<u64>§title: Option<String>§time: Option<i64>§url: Option<String>§stock_id: Option<u64>§news_unique_id: Option<String>§futu_source: Option<String>§content_status: Option<u32>§news_content_type: Option<i32>§link_type: Option<i32>§pic_url: Option<String>§is_auto_translated: Option<i32>§new_news_id: Option<String>Implementations§
Source§impl RatingItem
impl RatingItem
Sourcepub fn item_type(&self) -> i32
pub fn item_type(&self) -> i32
Returns the value of item_type, or the default value if item_type is unset.
Sourcepub fn report_id(&self) -> u64
pub fn report_id(&self) -> u64
Returns the value of report_id, or the default value if report_id is unset.
Sourcepub fn title(&self) -> &str
pub fn title(&self) -> &str
Returns the value of title, or the default value if title is unset.
Sourcepub fn stock_id(&self) -> u64
pub fn stock_id(&self) -> u64
Returns the value of stock_id, or the default value if stock_id is unset.
Sourcepub fn news_unique_id(&self) -> &str
pub fn news_unique_id(&self) -> &str
Returns the value of news_unique_id, or the default value if news_unique_id is unset.
Sourcepub fn futu_source(&self) -> &str
pub fn futu_source(&self) -> &str
Returns the value of futu_source, or the default value if futu_source is unset.
Sourcepub fn content_status(&self) -> u32
pub fn content_status(&self) -> u32
Returns the value of content_status, or the default value if content_status is unset.
Sourcepub fn news_content_type(&self) -> i32
pub fn news_content_type(&self) -> i32
Returns the value of news_content_type, or the default value if news_content_type is unset.
Sourcepub fn link_type(&self) -> i32
pub fn link_type(&self) -> i32
Returns the value of link_type, or the default value if link_type is unset.
Sourcepub fn pic_url(&self) -> &str
pub fn pic_url(&self) -> &str
Returns the value of pic_url, or the default value if pic_url is unset.
Sourcepub fn is_auto_translated(&self) -> i32
pub fn is_auto_translated(&self) -> i32
Returns the value of is_auto_translated, or the default value if is_auto_translated is unset.
Returns the value of show_translate_button, or the default value if show_translate_button is unset.
Sourcepub fn new_news_id(&self) -> &str
pub fn new_news_id(&self) -> &str
Returns the value of new_news_id, or the default value if new_news_id 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 (const: unstable) · 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>,
impl Eq for RatingItem
Source§impl Hash for RatingItem
impl Hash for RatingItem
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.Source§impl PartialEq for RatingItem
impl PartialEq for RatingItem
Source§fn eq(&self, other: &RatingItem) -> bool
fn eq(&self, other: &RatingItem) -> bool
self and other values to be equal, and is used by ==.