pub struct LatestNewsItem {Show 19 fields
pub audio_urls: Vec<String>,
pub content: Option<String>,
pub detail_url: Option<String>,
pub futu_source: Option<String>,
pub id: Option<i64>,
pub is_auto_translated: Option<i32>,
pub level: Option<i32>,
pub news_type: Option<i32>,
pub news_unique_id: Option<String>,
pub origin_lang: Option<String>,
pub pic: Option<String>,
pub related_stock_ids: Vec<u64>,
pub time: Option<i64>,
pub title: Option<String>,
pub news_content_type: Option<u32>,
pub source: Option<String>,
pub source_id: Option<i64>,
pub show_translate_button: Option<bool>,
pub new_news_id: Option<String>,
}Fields§
§audio_urls: Vec<String>§content: Option<String>§detail_url: Option<String>§futu_source: Option<String>§id: Option<i64>§is_auto_translated: Option<i32>§level: Option<i32>§news_type: Option<i32>§news_unique_id: Option<String>§origin_lang: Option<String>§pic: Option<String>§time: Option<i64>§title: Option<String>§news_content_type: Option<u32>§source: Option<String>§source_id: Option<i64>§new_news_id: Option<String>Implementations§
Source§impl LatestNewsItem
impl LatestNewsItem
Sourcepub fn content(&self) -> &str
pub fn content(&self) -> &str
Returns the value of content, or the default value if content is unset.
Sourcepub fn detail_url(&self) -> &str
pub fn detail_url(&self) -> &str
Returns the value of detail_url, or the default value if detail_url 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 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.
Sourcepub fn news_type(&self) -> i32
pub fn news_type(&self) -> i32
Returns the value of news_type, or the default value if news_type 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 origin_lang(&self) -> &str
pub fn origin_lang(&self) -> &str
Returns the value of origin_lang, or the default value if origin_lang 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 news_content_type(&self) -> u32
pub fn news_content_type(&self) -> u32
Returns the value of news_content_type, or the default value if news_content_type is unset.
Sourcepub fn source(&self) -> &str
pub fn source(&self) -> &str
Returns the value of source, or the default value if source is unset.
Sourcepub fn source_id(&self) -> i64
pub fn source_id(&self) -> i64
Returns the value of source_id, or the default value if source_id 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 LatestNewsItem
impl Clone for LatestNewsItem
Source§fn clone(&self) -> LatestNewsItem
fn clone(&self) -> LatestNewsItem
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 LatestNewsItem
impl Debug for LatestNewsItem
Source§impl Default for LatestNewsItem
impl Default for LatestNewsItem
Source§impl<'de> Deserialize<'de> for LatestNewsItemwhere
LatestNewsItem: Default,
impl<'de> Deserialize<'de> for LatestNewsItemwhere
LatestNewsItem: 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 LatestNewsItem
Source§impl Hash for LatestNewsItem
impl Hash for LatestNewsItem
Source§impl Message for LatestNewsItem
impl Message for LatestNewsItem
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 LatestNewsItem
impl PartialEq for LatestNewsItem
Source§fn eq(&self, other: &LatestNewsItem) -> bool
fn eq(&self, other: &LatestNewsItem) -> bool
self and other values to be equal, and is used by ==.