pub struct AnnouncementItem {Show 17 fields
pub notice_id: Option<u64>,
pub time: Option<i64>,
pub title: Option<String>,
pub url: Option<String>,
pub stock_id: Option<u64>,
pub stock_ids: Vec<u64>,
pub content_status: Option<u32>,
pub origin_lang: Option<String>,
pub link_type: Option<i32>,
pub is_auto_translated: Option<i32>,
pub news_unique_id: Option<String>,
pub futu_source: Option<String>,
pub pic_url: Option<String>,
pub news_type: Option<u32>,
pub show_translate_button: Option<bool>,
pub new_news_id: Option<String>,
pub ai_subtitle: Option<String>,
}Fields§
§notice_id: Option<u64>§time: Option<i64>§title: Option<String>§url: Option<String>§stock_id: Option<u64>§stock_ids: Vec<u64>§content_status: Option<u32>§origin_lang: Option<String>§link_type: Option<i32>§is_auto_translated: Option<i32>§news_unique_id: Option<String>§futu_source: Option<String>§pic_url: Option<String>§news_type: Option<u32>§new_news_id: Option<String>§ai_subtitle: Option<String>Implementations§
Source§impl AnnouncementItem
impl AnnouncementItem
Sourcepub fn notice_id(&self) -> u64
pub fn notice_id(&self) -> u64
Returns the value of notice_id, or the default value if notice_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 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 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 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 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_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 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 news_type(&self) -> u32
pub fn news_type(&self) -> u32
Returns the value of news_type, or the default value if news_type 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.
Sourcepub fn ai_subtitle(&self) -> &str
pub fn ai_subtitle(&self) -> &str
Returns the value of ai_subtitle, or the default value if ai_subtitle is unset.
Trait Implementations§
Source§impl Clone for AnnouncementItem
impl Clone for AnnouncementItem
Source§fn clone(&self) -> AnnouncementItem
fn clone(&self) -> AnnouncementItem
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 AnnouncementItem
impl Debug for AnnouncementItem
Source§impl Default for AnnouncementItem
impl Default for AnnouncementItem
Source§impl<'de> Deserialize<'de> for AnnouncementItemwhere
AnnouncementItem: Default,
impl<'de> Deserialize<'de> for AnnouncementItemwhere
AnnouncementItem: 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 AnnouncementItem
Source§impl Hash for AnnouncementItem
impl Hash for AnnouncementItem
Source§impl Message for AnnouncementItem
impl Message for AnnouncementItem
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 AnnouncementItem
impl PartialEq for AnnouncementItem
Source§fn eq(&self, other: &AnnouncementItem) -> bool
fn eq(&self, other: &AnnouncementItem) -> bool
self and other values to be equal, and is used by ==.