pub struct OptionScreenerReq {
pub strategy: Option<ScreenStrategy>,
pub strategy_param: Option<StrategyExtraParam>,
pub field_filter: Option<OptionItem>,
pub sort_list: Vec<SortObj>,
pub pagination: Option<OffsetPageObj>,
pub request_exact_data: Option<i32>,
}Expand description
通用期权筛选请求
Fields§
§strategy: Option<ScreenStrategy>【必传】筛选策略
strategy_param: Option<StrategyExtraParam>【非必传】策略附加参数,note: 如果用户既未选择自选股,也未选择选股器策略,该字段不传
field_filter: Option<OptionItem>【非必传】指定字段返回,不传返回默认id
sort_list: Vec<SortObj>【非必传】排序字段,默认按照期权id排序,支持多级排序,目前仅开放至二级排序
pagination: Option<OffsetPageObj>【非必传】分页信息,需要数据时需设置具体的分页信息
request_exact_data: Option<i32>【非必传】是否请求精确数据,0:不请求,1:请求; 默认为0,故需数据时需设置为1
Implementations§
Source§impl OptionScreenerReq
impl OptionScreenerReq
Sourcepub fn request_exact_data(&self) -> i32
pub fn request_exact_data(&self) -> i32
Returns the value of request_exact_data, or the default value if request_exact_data is unset.
Trait Implementations§
Source§impl Clone for OptionScreenerReq
impl Clone for OptionScreenerReq
Source§fn clone(&self) -> OptionScreenerReq
fn clone(&self) -> OptionScreenerReq
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 OptionScreenerReq
impl Debug for OptionScreenerReq
Source§impl Default for OptionScreenerReq
impl Default for OptionScreenerReq
Source§impl Message for OptionScreenerReq
impl Message for OptionScreenerReq
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 OptionScreenerReq
impl PartialEq for OptionScreenerReq
impl StructuralPartialEq for OptionScreenerReq
Auto Trait Implementations§
impl Freeze for OptionScreenerReq
impl RefUnwindSafe for OptionScreenerReq
impl Send for OptionScreenerReq
impl Sync for OptionScreenerReq
impl Unpin for OptionScreenerReq
impl UnsafeUnpin for OptionScreenerReq
impl UnwindSafe for OptionScreenerReq
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