Skip to main content

StockNewsItem

Struct StockNewsItem 

Source
pub struct StockNewsItem {
Show 31 fields pub bulletin_id: Option<u32>, pub time: Option<u32>, pub title: Option<String>, pub url: Option<String>, pub source: Option<String>, pub importance_level: Option<u32>, pub importance_tag: Option<String>, pub content_tags: Vec<String>, pub is_push: Option<u32>, pub polarity: Option<u32>, pub is_highlight: Option<u32>, pub audio_url: Option<String>, pub audio_duration: Option<u32>, pub fixed_position: Option<u32>, pub content_type: Option<u32>, pub news_type: Option<u32>, pub origin_lang: Option<String>, pub pic: Option<String>, pub post_id: Option<u32>, pub abstract: Option<String>, pub translated_title: Option<String>, pub link_type: Option<u32>, pub news_unique_id: Option<String>, pub is_video: Option<u32>, pub is_auto_translated: Option<u32>, pub futu_source: Option<String>, pub content_status: Option<u32>, pub operation_position: Option<u32>, pub operation_top_type: Option<i32>, pub show_translate_button: Option<bool>, pub new_news_id: Option<String>,
}

Fields§

§bulletin_id: Option<u32>§time: Option<u32>§title: Option<String>§url: Option<String>§source: Option<String>§importance_level: Option<u32>§importance_tag: Option<String>§content_tags: Vec<String>§is_push: Option<u32>§polarity: Option<u32>§is_highlight: Option<u32>§audio_url: Option<String>§audio_duration: Option<u32>§fixed_position: Option<u32>§content_type: Option<u32>§news_type: Option<u32>§origin_lang: Option<String>§pic: Option<String>§post_id: Option<u32>§abstract: Option<String>§translated_title: Option<String>§link_type: Option<u32>§news_unique_id: Option<String>§is_video: Option<u32>§is_auto_translated: Option<u32>§futu_source: Option<String>§content_status: Option<u32>§operation_position: Option<u32>§operation_top_type: Option<i32>§show_translate_button: Option<bool>§new_news_id: Option<String>

Implementations§

Source§

impl StockNewsItem

Source

pub fn bulletin_id(&self) -> u32

Returns the value of bulletin_id, or the default value if bulletin_id is unset.

Source

pub fn time(&self) -> u32

Returns the value of time, or the default value if time is unset.

Source

pub fn title(&self) -> &str

Returns the value of title, or the default value if title is unset.

Source

pub fn url(&self) -> &str

Returns the value of url, or the default value if url is unset.

Source

pub fn source(&self) -> &str

Returns the value of source, or the default value if source is unset.

Source

pub fn importance_level(&self) -> u32

Returns the value of importance_level, or the default value if importance_level is unset.

Source

pub fn importance_tag(&self) -> &str

Returns the value of importance_tag, or the default value if importance_tag is unset.

Source

pub fn is_push(&self) -> u32

Returns the value of is_push, or the default value if is_push is unset.

Source

pub fn polarity(&self) -> u32

Returns the value of polarity, or the default value if polarity is unset.

Source

pub fn is_highlight(&self) -> u32

Returns the value of is_highlight, or the default value if is_highlight is unset.

Source

pub fn audio_url(&self) -> &str

Returns the value of audio_url, or the default value if audio_url is unset.

Source

pub fn audio_duration(&self) -> u32

Returns the value of audio_duration, or the default value if audio_duration is unset.

Source

pub fn fixed_position(&self) -> u32

Returns the value of fixed_position, or the default value if fixed_position is unset.

Source

pub fn content_type(&self) -> u32

Returns the value of content_type, or the default value if content_type is unset.

Source

pub fn news_type(&self) -> u32

Returns the value of news_type, or the default value if news_type is unset.

Source

pub fn origin_lang(&self) -> &str

Returns the value of origin_lang, or the default value if origin_lang is unset.

Source

pub fn pic(&self) -> &str

Returns the value of pic, or the default value if pic is unset.

Source

pub fn post_id(&self) -> u32

Returns the value of post_id, or the default value if post_id is unset.

Source

pub fn abstract(&self) -> &str

Returns the value of abstract, or the default value if abstract is unset.

Source

pub fn translated_title(&self) -> &str

Returns the value of translated_title, or the default value if translated_title is unset.

Returns the value of link_type, or the default value if link_type is unset.

Source

pub fn news_unique_id(&self) -> &str

Returns the value of news_unique_id, or the default value if news_unique_id is unset.

Source

pub fn is_video(&self) -> u32

Returns the value of is_video, or the default value if is_video is unset.

Source

pub fn is_auto_translated(&self) -> u32

Returns the value of is_auto_translated, or the default value if is_auto_translated is unset.

Source

pub fn futu_source(&self) -> &str

Returns the value of futu_source, or the default value if futu_source is unset.

Source

pub fn content_status(&self) -> u32

Returns the value of content_status, or the default value if content_status is unset.

Source

pub fn operation_position(&self) -> u32

Returns the value of operation_position, or the default value if operation_position is unset.

Source

pub fn operation_top_type(&self) -> i32

Returns the value of operation_top_type, or the default value if operation_top_type is unset.

Source

pub fn show_translate_button(&self) -> bool

Returns the value of show_translate_button, or the default value if show_translate_button is unset.

Source

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 StockNewsItem

Source§

fn clone(&self) -> StockNewsItem

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StockNewsItem

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for StockNewsItem

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for StockNewsItem

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for StockNewsItem

Source§

impl Hash for StockNewsItem

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Message for StockNewsItem

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
Source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
Source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
Source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
Source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
Source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
Source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
Source§

impl PartialEq for StockNewsItem

Source§

fn eq(&self, other: &StockNewsItem) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for StockNewsItem

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for StockNewsItem

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.