pub struct OptionScreenerRsp {
pub code: Option<i32>,
pub message: Option<String>,
pub option_list: Vec<OptionItem>,
pub has_more: Option<i32>,
pub total_num: Option<i32>,
}Fields§
§code: Option<i32>返回码, 非0时表示请求异常
message: Option<String>错误log, 用户调用方打印日志
option_list: Vec<OptionItem>筛选结果列表,【特别注意】当request.request_exact_data被设置0时,该字段无效
has_more: Option<i32>是否还有更多数据,1:有,0:无
total_num: Option<i32>total_num: 满足条件的数量:满足条件的期权数量, 仅用于展示结果,请勿使用该字段用于分页判断。 当request.request_exact_data被设置0时,total_num只返回一个大概的数量。需要与has_more字段一起使用,表示如下:
- has_more为1,total_num为9999,表示满足条件的期权数量超过9999个,此时客户端处理为”筛选结果> 9999个期权“;
- has_more为0,total_num为9999,表示满足条件的期权数量刚好为9999个“;
当request.request_exact_data被设置1时,total_num返回精确的数量。分页判断仅使用has_more字段,表示如下:
- has_more 为1时,表示还有更多数据,此时客户端可以继续请求下一页数据
- has_more 为0时,表示没有更多数据,此时客户端可以停止请求
Implementations§
Trait Implementations§
Source§impl Clone for OptionScreenerRsp
impl Clone for OptionScreenerRsp
Source§fn clone(&self) -> OptionScreenerRsp
fn clone(&self) -> OptionScreenerRsp
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 OptionScreenerRsp
impl Debug for OptionScreenerRsp
Source§impl Default for OptionScreenerRsp
impl Default for OptionScreenerRsp
Source§impl Message for OptionScreenerRsp
impl Message for OptionScreenerRsp
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 OptionScreenerRsp
impl PartialEq for OptionScreenerRsp
impl StructuralPartialEq for OptionScreenerRsp
Auto Trait Implementations§
impl Freeze for OptionScreenerRsp
impl RefUnwindSafe for OptionScreenerRsp
impl Send for OptionScreenerRsp
impl Sync for OptionScreenerRsp
impl Unpin for OptionScreenerRsp
impl UnsafeUnpin for OptionScreenerRsp
impl UnwindSafe for OptionScreenerRsp
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