pub struct StockScreenV2Req {
pub screen_queries: Vec<ScreenQuery>,
pub retrieve_queries: Vec<RetrieveQuery>,
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>,
pub internal_invoke: Option<bool>,
pub sorts: Vec<Sort>,
}Expand description
股票筛选返回 cmd: 20817
Fields§
§screen_queries: Vec<ScreenQuery>获取属性设置
筛选过滤器列表
retrieve_queries: Vec<RetrieveQuery>获取属性,与retrieve_properties作用相同,兼容通用榜单功能
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使用
internal_invoke: Option<bool>内部调用,data_max_count由调用方指定,不限制最大值300
sorts: Vec<Sort>排序字段(多字段按列表顺序优先级排序),有值时优先使用
Implementations§
Source§impl StockScreenV2Req
impl StockScreenV2Req
Sourcepub fn data_from(&self) -> i32
pub fn data_from(&self) -> i32
Returns the value of data_from, or the default value if data_from is unset.
Sourcepub fn data_max_count(&self) -> i32
pub fn data_max_count(&self) -> i32
Returns the value of data_max_count, or the default value if data_max_count is unset.
Sourcepub fn internal_invoke(&self) -> bool
pub fn internal_invoke(&self) -> bool
Returns the value of internal_invoke, or the default value if internal_invoke is unset.
Trait Implementations§
Source§impl Clone for StockScreenV2Req
impl Clone for StockScreenV2Req
Source§fn clone(&self) -> StockScreenV2Req
fn clone(&self) -> StockScreenV2Req
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 StockScreenV2Req
impl Debug for StockScreenV2Req
Source§impl Default for StockScreenV2Req
impl Default for StockScreenV2Req
Source§impl Message for StockScreenV2Req
impl Message for StockScreenV2Req
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 StockScreenV2Req
impl PartialEq for StockScreenV2Req
impl StructuralPartialEq for StockScreenV2Req
Auto Trait Implementations§
impl Freeze for StockScreenV2Req
impl RefUnwindSafe for StockScreenV2Req
impl Send for StockScreenV2Req
impl Sync for StockScreenV2Req
impl Unpin for StockScreenV2Req
impl UnsafeUnpin for StockScreenV2Req
impl UnwindSafe for StockScreenV2Req
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