pub struct C2s {
pub security_list: Vec<Security>,
pub sub_type_list: Vec<i32>,
pub is_sub_or_un_sub: bool,
pub is_reg_or_un_reg_push: Option<bool>,
pub reg_push_rehab_type_list: Vec<i32>,
pub is_first_push: Option<bool>,
pub is_unsub_all: Option<bool>,
pub is_sub_order_book_detail: Option<bool>,
pub extended_time: Option<bool>,
pub session: Option<i32>,
}Fields§
§security_list: Vec<Security>股票
sub_type_list: Vec<i32>Qot_Common.SubType,订阅数据类型
is_sub_or_un_sub: boolture表示订阅,false表示反订阅
is_reg_or_un_reg_push: Option<bool>是否注册或反注册该连接上面行情的推送,该参数不指定不做注册反注册操作
reg_push_rehab_type_list: Vec<i32>Qot_Common.RehabType,复权类型,注册推送并且是K线类型才生效,其他订阅类型忽略该参数,注册K线推送时该参数不指定默认前复权
is_first_push: Option<bool>注册后如果本地已有数据是否首推一次已存在数据,该参数不指定则默认true
is_unsub_all: Option<bool>当被设置为True时忽略其他参数,取消当前连接的所有订阅,并且反注册推送。
is_sub_order_book_detail: Option<bool>订阅摆盘可用,是否订阅摆盘明细,仅支持SF行情,该参数不指定则默认false
extended_time: Option<bool>是否允许美股盘前盘后数据(仅用于订阅美股的实时K线、实时分时、实时逐笔)
session: Option<i32>时段
Implementations§
Source§impl C2s
impl C2s
Sourcepub fn is_reg_or_un_reg_push(&self) -> bool
pub fn is_reg_or_un_reg_push(&self) -> bool
Returns the value of is_reg_or_un_reg_push, or the default value if is_reg_or_un_reg_push is unset.
Sourcepub fn is_first_push(&self) -> bool
pub fn is_first_push(&self) -> bool
Returns the value of is_first_push, or the default value if is_first_push is unset.
Sourcepub fn is_unsub_all(&self) -> bool
pub fn is_unsub_all(&self) -> bool
Returns the value of is_unsub_all, or the default value if is_unsub_all is unset.
Sourcepub fn is_sub_order_book_detail(&self) -> bool
pub fn is_sub_order_book_detail(&self) -> bool
Returns the value of is_sub_order_book_detail, or the default value if is_sub_order_book_detail is unset.
Sourcepub fn extended_time(&self) -> bool
pub fn extended_time(&self) -> bool
Returns the value of extended_time, or the default value if extended_time 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>,
Source§impl Message for C2s
impl Message for C2s
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.