pub struct StockListRsp {
pub result: i32,
pub array_max_version: Option<u64>,
pub arry_items: Vec<CsStockItem>,
pub if_all_rsp: Option<i32>,
pub all_count: Option<u32>,
pub next_request_interval: Option<u32>,
pub id_check_sum: Option<u64>,
pub seq_check_sum: Option<u64>,
pub stock_list_id: Option<u32>,
pub stock_count: Option<i32>,
pub id_check_sum_v2: Option<CheckSum>,
pub seq_check_sum_v2: Option<CheckSum>,
}Fields§
§result: i320表示成功返回;其他表示失败
array_max_version: Option<u64>本次返回的股票列表中最大的版本号。下一次请求时StockList_Req.stock_list_version设置为该值
arry_items: Vec<CsStockItem>本次请求返回的股票列表
if_all_rsp: Option<i32>符合条件的股票是否全部返回了, 0-还有记录未返回; 非0-所有符合条件的股票已全部返回
all_count: Option<u32>符合条件的股票的数量
next_request_interval: Option<u32>下次请求间隔(秒)。仅在if_all_rsp!=0时有效。
id_check_sum: Option<u64>id校验值 (老校验和字段, 存在溢出风险, 新客户端请使用 id_check_sum_v2 代替).
seq_check_sum: Option<u64>seq校验值 (老校验和字段, 存在溢出风险, 新客户端请使用 seq_check_sum_v2 代替).
stock_list_id: Option<u32>股票列表所在环境id
stock_count: Option<i32>v1.4.110 final E.5 P3#8: 补 field 11-13 对齐 C++ Quote/stock_list_sync.proto:242-244 stock_count: 未退市的股票数量 (server-driven, 用于客户端 sanity check 总量) id_check_sum_v2: 新 stock_id 校验和 (64+64 bit, 避免老 uint64 溢出) seq_check_sum_v2: 新 seq 校验和 Rust 当前不 enforce checksum (debug-log only); 补字段防 server 下发 v2 时 prost 解析漂移.
未退市的股票数量
id_check_sum_v2: Option<CheckSum>新股票 id 校验和
seq_check_sum_v2: Option<CheckSum>新股票 seq 校验和
Implementations§
Source§impl StockListRsp
impl StockListRsp
Sourcepub fn array_max_version(&self) -> u64
pub fn array_max_version(&self) -> u64
Returns the value of array_max_version, or the default value if array_max_version is unset.
Sourcepub fn if_all_rsp(&self) -> i32
pub fn if_all_rsp(&self) -> i32
Returns the value of if_all_rsp, or the default value if if_all_rsp is unset.
Sourcepub fn all_count(&self) -> u32
pub fn all_count(&self) -> u32
Returns the value of all_count, or the default value if all_count is unset.
Sourcepub fn next_request_interval(&self) -> u32
pub fn next_request_interval(&self) -> u32
Returns the value of next_request_interval, or the default value if next_request_interval is unset.
Sourcepub fn id_check_sum(&self) -> u64
pub fn id_check_sum(&self) -> u64
Returns the value of id_check_sum, or the default value if id_check_sum is unset.
Sourcepub fn seq_check_sum(&self) -> u64
pub fn seq_check_sum(&self) -> u64
Returns the value of seq_check_sum, or the default value if seq_check_sum is unset.
Sourcepub fn stock_list_id(&self) -> u32
pub fn stock_list_id(&self) -> u32
Returns the value of stock_list_id, or the default value if stock_list_id is unset.
Sourcepub fn stock_count(&self) -> i32
pub fn stock_count(&self) -> i32
Returns the value of stock_count, or the default value if stock_count is unset.
Trait Implementations§
Source§impl Clone for StockListRsp
impl Clone for StockListRsp
Source§fn clone(&self) -> StockListRsp
fn clone(&self) -> StockListRsp
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StockListRsp
impl Debug for StockListRsp
Source§impl Default for StockListRsp
impl Default for StockListRsp
Source§impl Message for StockListRsp
impl Message for StockListRsp
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.