pub struct C2s {
pub market_type: Option<i32>,
pub is_delay: Option<bool>,
pub filter_list: Vec<ScreenGroup>,
pub sort_list: Vec<Sort>,
pub only_count: Option<bool>,
pub page_from: Option<i32>,
pub page_count: Option<i32>,
}Fields§
§market_type: Option<i32>市场: 1=HK, 4=SG, 15=MY
is_delay: Option<bool>是否延迟行情
filter_list: Vec<ScreenGroup>筛选条件列表
sort_list: Vec<Sort>排序列表 (多字段排序)
only_count: Option<bool>仅返回数量
page_from: Option<i32>数据偏移位, 从0开始
page_count: Option<i32>每页最大数量
Implementations§
Source§impl C2s
impl C2s
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<'de> Deserialize<'de> for C2s
impl<'de> Deserialize<'de> for C2s
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for C2s
impl Message for C2s
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.impl StructuralPartialEq for C2s
Auto Trait Implementations§
impl Freeze for C2s
impl RefUnwindSafe for C2s
impl Send for C2s
impl Sync for C2s
impl Unpin for C2s
impl UnsafeUnpin for C2s
impl UnwindSafe for C2s
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