pub struct HotStockListRsp {
pub new_sequence: u64,
pub changed: u32,
pub hot_stocks: Vec<OneHotStock>,
pub next_req_secs: u32,
}Expand description
响应热门股票列表请求
Fields§
§new_sequence: u64返回最新的版本号, 客户端需要保存, 下次再请求热门股票列表时, 上传该版本号
changed: u32表示热门股票列表是否有变更, 0表示未变更, 非0表示有变更. 后台根据请求包中的版本号和后台保存的版本号, 判断是否有变更
hot_stocks: Vec<OneHotStock>热门股票列表. 如果热门股票列表没有变更(即changed==0), 则该数组为空; 否则返回全量的热门股票, 客户端清除原来的热门股票列表, 以本列表为准.
next_req_secs: u32客户端下次请求热门股票列表的间隔, 单位为秒
Trait Implementations§
Source§impl Clone for HotStockListRsp
impl Clone for HotStockListRsp
Source§fn clone(&self) -> HotStockListRsp
fn clone(&self) -> HotStockListRsp
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 HotStockListRsp
impl Debug for HotStockListRsp
Source§impl Default for HotStockListRsp
impl Default for HotStockListRsp
Source§impl Message for HotStockListRsp
impl Message for HotStockListRsp
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 HotStockListRsp
impl PartialEq for HotStockListRsp
impl StructuralPartialEq for HotStockListRsp
Auto Trait Implementations§
impl Freeze for HotStockListRsp
impl RefUnwindSafe for HotStockListRsp
impl Send for HotStockListRsp
impl Sync for HotStockListRsp
impl Unpin for HotStockListRsp
impl UnsafeUnpin for HotStockListRsp
impl UnwindSafe for HotStockListRsp
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