pub struct QtaAuth6024Req {
pub req_hk_auth: Option<u32>,
pub req_us_auth: Option<u32>,
pub req_cn_auth: Option<u32>,
pub device_type: Option<u32>,
pub quote_change_notify: Option<QuoteChangeNotify>,
}Expand description
行情权限请求, CMD=6024
Fields§
§req_hk_auth: Option<u32>请求港股权限。独立登录传0,断线重连传断线前的权限,行情被踢重登录则传互踢通知包中的权限
req_us_auth: Option<u32>请求美股权限。独立登录传0,断线重连传断线前的权限,行情被踢重登录则传互踢通知包中的权限
req_cn_auth: Option<u32>请求A股权限。独立登录传0,断线重连传断线前的权限,行情被踢重登录则传互踢通知包中的权限
device_type: Option<u32>设备类型,目前只是用来区分iphone和ipad,参考quote_auth_svr.DEVICE_TYPE枚举
quote_change_notify: Option<QuoteChangeNotify>行情变更(互踢)通知。如果终端设置了该字段,server优先分配通知中各品种被变更后的权限
Implementations§
Source§impl QtaAuth6024Req
impl QtaAuth6024Req
Sourcepub fn req_hk_auth(&self) -> u32
pub fn req_hk_auth(&self) -> u32
Returns the value of req_hk_auth, or the default value if req_hk_auth is unset.
Sourcepub fn req_us_auth(&self) -> u32
pub fn req_us_auth(&self) -> u32
Returns the value of req_us_auth, or the default value if req_us_auth is unset.
Sourcepub fn req_cn_auth(&self) -> u32
pub fn req_cn_auth(&self) -> u32
Returns the value of req_cn_auth, or the default value if req_cn_auth is unset.
Sourcepub fn device_type(&self) -> u32
pub fn device_type(&self) -> u32
Returns the value of device_type, or the default value if device_type is unset.
Trait Implementations§
Source§impl Clone for QtaAuth6024Req
impl Clone for QtaAuth6024Req
Source§fn clone(&self) -> QtaAuth6024Req
fn clone(&self) -> QtaAuth6024Req
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 QtaAuth6024Req
impl Debug for QtaAuth6024Req
Source§impl Default for QtaAuth6024Req
impl Default for QtaAuth6024Req
Source§impl Message for QtaAuth6024Req
impl Message for QtaAuth6024Req
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 QtaAuth6024Req
impl PartialEq for QtaAuth6024Req
impl StructuralPartialEq for QtaAuth6024Req
Auto Trait Implementations§
impl Freeze for QtaAuth6024Req
impl RefUnwindSafe for QtaAuth6024Req
impl Send for QtaAuth6024Req
impl Sync for QtaAuth6024Req
impl Unpin for QtaAuth6024Req
impl UnsafeUnpin for QtaAuth6024Req
impl UnwindSafe for QtaAuth6024Req
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