pub struct StockScreenReq {
pub screen_queries: Vec<ScreenQuery>,
pub retrieve_properties: Option<RetrieveProperties>,
pub watchlist_stock_ids: Vec<u64>,
pub sort: Option<Sort>,
pub data_from: Option<i32>,
pub data_max_count: Option<i32>,
pub session_auth: Option<SessionAuth>,
}Expand description
股票筛选请求 cmd: 20344 查询接口v2,功能与9456类似,使用新的协议,对接新pc选股器功能
Fields§
§screen_queries: Vec<ScreenQuery>筛选过滤器列表
retrieve_properties: Option<RetrieveProperties>获取属性设置(获取各个类型字段数据属性的设置)
watchlist_stock_ids: Vec<u64>自定义的股票名单列表(需要筛选过滤器中有设置简单字段USE_WATCHLIST_STOCKS的条件才生效,类比旧协议中的use_watchlist_stocks字段)
sort: Option<Sort>排序字段
data_from: Option<i32>数据偏移位,从0开始
data_max_count: Option<i32>当前要拉取的最大数据量(最大300)
session_auth: Option<SessionAuth>权限信息,目前仅web使用
Implementations§
Trait Implementations§
Source§impl Clone for StockScreenReq
impl Clone for StockScreenReq
Source§fn clone(&self) -> StockScreenReq
fn clone(&self) -> StockScreenReq
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 StockScreenReq
impl Debug for StockScreenReq
Source§impl Default for StockScreenReq
impl Default for StockScreenReq
Source§impl Message for StockScreenReq
impl Message for StockScreenReq
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 StockScreenReq
impl PartialEq for StockScreenReq
impl StructuralPartialEq for StockScreenReq
Auto Trait Implementations§
impl Freeze for StockScreenReq
impl RefUnwindSafe for StockScreenReq
impl Send for StockScreenReq
impl Sync for StockScreenReq
impl Unpin for StockScreenReq
impl UnsafeUnpin for StockScreenReq
impl UnwindSafe for StockScreenReq
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