pub struct QtaAuthChgNotify {
pub quote_auth_hk: Option<u32>,
pub quote_auth_us: Option<u32>,
pub quote_auth_cn: Option<u32>,
pub quote_flag_hk: Option<u32>,
pub quote_flag_us: Option<u32>,
pub quote_flag_cn: Option<u32>,
pub quote_diff_rsn_hk: Option<u32>,
pub quote_diff_rsn_us: Option<u32>,
pub quote_diff_rsn_cn: Option<u32>,
}Expand description
/ 行情权限变更通知协议, / 注意: 该协议经过conn服务下发时, 被conn加密了, 客户端收到包后需要解密. 具体加解密咨询marson/ysq
Fields§
§quote_auth_hk: Option<u32>港股行情权限(0未知,1实时,2延迟或BMP)(没有该字段或者服务器传0时,就丢弃,保持上次的权限)
quote_auth_us: Option<u32>美股行情权限(0未知,1实时,2延迟或BMP)(没有该字段或者服务器传0时,就丢弃,保持上次的权限)
quote_auth_cn: Option<u32>A股行情权限(0未知,1 LV1,2 LV2)(没有该字段或者服务器传0时,就丢弃,保持上次的权限)
quote_flag_hk: Option<u32>港股行情实际权限状态Flag(0未知,1实时,2延迟或BMP)(没有该字段或者服务器传0时,就丢弃,保持上次的状态)
quote_flag_us: Option<u32>美股行情实际权限状态Flag(0未知,1实时,2延迟或BMP)(没有该字段或者服务器传0时,就丢弃,保持上次的状态)
quote_flag_cn: Option<u32>A股行情实际权限状态Flag(0未知,1 LV2,2 LV2)(没有该字段或者服务器传0时,就丢弃,保持上次的状态)
quote_diff_rsn_hk: Option<u32>/
港股状态与权限不一致时的原因
quote_diff_rsn_us: Option<u32>美股状态与权限不一致时的原因
quote_diff_rsn_cn: Option<u32>A股状态与权限不一致时的原因
Implementations§
Source§impl QtaAuthChgNotify
impl QtaAuthChgNotify
Sourcepub fn quote_auth_hk(&self) -> u32
pub fn quote_auth_hk(&self) -> u32
Returns the value of quote_auth_hk, or the default value if quote_auth_hk is unset.
Sourcepub fn quote_auth_us(&self) -> u32
pub fn quote_auth_us(&self) -> u32
Returns the value of quote_auth_us, or the default value if quote_auth_us is unset.
Sourcepub fn quote_auth_cn(&self) -> u32
pub fn quote_auth_cn(&self) -> u32
Returns the value of quote_auth_cn, or the default value if quote_auth_cn is unset.
Sourcepub fn quote_flag_hk(&self) -> u32
pub fn quote_flag_hk(&self) -> u32
Returns the value of quote_flag_hk, or the default value if quote_flag_hk is unset.
Sourcepub fn quote_flag_us(&self) -> u32
pub fn quote_flag_us(&self) -> u32
Returns the value of quote_flag_us, or the default value if quote_flag_us is unset.
Sourcepub fn quote_flag_cn(&self) -> u32
pub fn quote_flag_cn(&self) -> u32
Returns the value of quote_flag_cn, or the default value if quote_flag_cn is unset.
Sourcepub fn quote_diff_rsn_hk(&self) -> u32
pub fn quote_diff_rsn_hk(&self) -> u32
Returns the value of quote_diff_rsn_hk, or the default value if quote_diff_rsn_hk is unset.
Sourcepub fn quote_diff_rsn_us(&self) -> u32
pub fn quote_diff_rsn_us(&self) -> u32
Returns the value of quote_diff_rsn_us, or the default value if quote_diff_rsn_us is unset.
Sourcepub fn quote_diff_rsn_cn(&self) -> u32
pub fn quote_diff_rsn_cn(&self) -> u32
Returns the value of quote_diff_rsn_cn, or the default value if quote_diff_rsn_cn is unset.
Trait Implementations§
Source§impl Clone for QtaAuthChgNotify
impl Clone for QtaAuthChgNotify
Source§fn clone(&self) -> QtaAuthChgNotify
fn clone(&self) -> QtaAuthChgNotify
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QtaAuthChgNotify
impl Debug for QtaAuthChgNotify
Source§impl Default for QtaAuthChgNotify
impl Default for QtaAuthChgNotify
Source§impl Hash for QtaAuthChgNotify
impl Hash for QtaAuthChgNotify
Source§impl Message for QtaAuthChgNotify
impl Message for QtaAuthChgNotify
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.Source§impl PartialEq for QtaAuthChgNotify
impl PartialEq for QtaAuthChgNotify
impl Copy for QtaAuthChgNotify
impl Eq for QtaAuthChgNotify
impl StructuralPartialEq for QtaAuthChgNotify
Auto Trait Implementations§
impl Freeze for QtaAuthChgNotify
impl RefUnwindSafe for QtaAuthChgNotify
impl Send for QtaAuthChgNotify
impl Sync for QtaAuthChgNotify
impl Unpin for QtaAuthChgNotify
impl UnsafeUnpin for QtaAuthChgNotify
impl UnwindSafe for QtaAuthChgNotify
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.