pub struct HotListItem {
pub security: Security,
pub name: Option<String>,
pub trade_heat: Option<f64>,
pub trade_heat_change: Option<f64>,
pub search_heat: Option<f64>,
pub search_heat_change: Option<f64>,
pub news_heat: Option<f64>,
pub news_heat_change: Option<f64>,
pub average_heat: Option<f64>,
pub average_heat_change: Option<f64>,
pub news_info: Option<HotNewsInfo>,
}Expand description
热议榜数据项
Fields§
§security: Security股票
name: Option<String>名称
trade_heat: Option<f64>交易热度
trade_heat_change: Option<f64>交易热度变化
search_heat: Option<f64>搜索热度
search_heat_change: Option<f64>搜索热度变化
news_heat: Option<f64>资讯热度
news_heat_change: Option<f64>资讯热度变化
average_heat: Option<f64>综合热度
average_heat_change: Option<f64>综合热度变化
news_info: Option<HotNewsInfo>关联新闻
Implementations§
Source§impl HotListItem
impl HotListItem
Sourcepub fn trade_heat(&self) -> f64
pub fn trade_heat(&self) -> f64
Returns the value of trade_heat, or the default value if trade_heat is unset.
Sourcepub fn trade_heat_change(&self) -> f64
pub fn trade_heat_change(&self) -> f64
Returns the value of trade_heat_change, or the default value if trade_heat_change is unset.
Sourcepub fn search_heat(&self) -> f64
pub fn search_heat(&self) -> f64
Returns the value of search_heat, or the default value if search_heat is unset.
Sourcepub fn search_heat_change(&self) -> f64
pub fn search_heat_change(&self) -> f64
Returns the value of search_heat_change, or the default value if search_heat_change is unset.
Sourcepub fn news_heat(&self) -> f64
pub fn news_heat(&self) -> f64
Returns the value of news_heat, or the default value if news_heat is unset.
Sourcepub fn news_heat_change(&self) -> f64
pub fn news_heat_change(&self) -> f64
Returns the value of news_heat_change, or the default value if news_heat_change is unset.
Sourcepub fn average_heat(&self) -> f64
pub fn average_heat(&self) -> f64
Returns the value of average_heat, or the default value if average_heat is unset.
Sourcepub fn average_heat_change(&self) -> f64
pub fn average_heat_change(&self) -> f64
Returns the value of average_heat_change, or the default value if average_heat_change is unset.
Trait Implementations§
Source§impl Clone for HotListItem
impl Clone for HotListItem
Source§fn clone(&self) -> HotListItem
fn clone(&self) -> HotListItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HotListItem
impl Debug for HotListItem
Source§impl Default for HotListItem
impl Default for HotListItem
Source§impl<'de> Deserialize<'de> for HotListItemwhere
HotListItem: Default,
impl<'de> Deserialize<'de> for HotListItemwhere
HotListItem: 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for HotListItem
impl Message for HotListItem
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
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,
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,
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,
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 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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for HotListItem
impl PartialEq for HotListItem
Source§impl Serialize for HotListItem
impl Serialize for HotListItem
impl StructuralPartialEq for HotListItem
Auto Trait Implementations§
impl Freeze for HotListItem
impl RefUnwindSafe for HotListItem
impl Send for HotListItem
impl Sync for HotListItem
impl Unpin for HotListItem
impl UnsafeUnpin for HotListItem
impl UnwindSafe for HotListItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more