pub struct FetchWarrantListV2Req {
pub market_type: Option<i32>,
pub is_delay: Option<bool>,
pub screen_groups: Vec<ScreenGroup>,
pub sorts: Vec<Sort>,
pub only_count: Option<bool>,
pub page_from: Option<i32>,
pub page_count: Option<i32>,
}Expand description
窝轮牛熊选股V2请求 (CMD 20334, 新格式)
Fields§
§market_type: Option<i32>市场,参考MARKET_TYPE
is_delay: Option<bool>当前市场是否延时权限
screen_groups: Vec<ScreenGroup>筛选条件组(AND关系)
sorts: Vec<Sort>排序
only_count: Option<bool>是否只请求数量
page_from: Option<i32>数据起始项
page_count: Option<i32>数据返回最大数(未填默认50个,最大1000)
Implementations§
Source§impl FetchWarrantListV2Req
impl FetchWarrantListV2Req
Sourcepub fn market_type(&self) -> i32
pub fn market_type(&self) -> i32
Returns the value of market_type, or the default value if market_type is unset.
Sourcepub fn is_delay(&self) -> bool
pub fn is_delay(&self) -> bool
Returns the value of is_delay, or the default value if is_delay is unset.
Sourcepub fn only_count(&self) -> bool
pub fn only_count(&self) -> bool
Returns the value of only_count, or the default value if only_count is unset.
Sourcepub fn page_from(&self) -> i32
pub fn page_from(&self) -> i32
Returns the value of page_from, or the default value if page_from is unset.
Sourcepub fn page_count(&self) -> i32
pub fn page_count(&self) -> i32
Returns the value of page_count, or the default value if page_count is unset.
Trait Implementations§
Source§impl Clone for FetchWarrantListV2Req
impl Clone for FetchWarrantListV2Req
Source§fn clone(&self) -> FetchWarrantListV2Req
fn clone(&self) -> FetchWarrantListV2Req
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 FetchWarrantListV2Req
impl Debug for FetchWarrantListV2Req
Source§impl Default for FetchWarrantListV2Req
impl Default for FetchWarrantListV2Req
Source§impl Message for FetchWarrantListV2Req
impl Message for FetchWarrantListV2Req
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 FetchWarrantListV2Req
impl PartialEq for FetchWarrantListV2Req
impl StructuralPartialEq for FetchWarrantListV2Req
Auto Trait Implementations§
impl Freeze for FetchWarrantListV2Req
impl RefUnwindSafe for FetchWarrantListV2Req
impl Send for FetchWarrantListV2Req
impl Sync for FetchWarrantListV2Req
impl Unpin for FetchWarrantListV2Req
impl UnsafeUnpin for FetchWarrantListV2Req
impl UnwindSafe for FetchWarrantListV2Req
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