pub struct GetTokenListResponse {
pub err_code: Option<i32>,
pub err_msg: Option<String>,
pub nn_token_enable: Option<u32>,
pub nn_token_bind: Option<u32>,
pub mm_token_enable: Option<u32>,
pub mm_token_bind: Option<u32>,
}Expand description
响应: NN/MM 各 enable + bind 4 字段. 1=绑定/启用, 0=未绑定/未启用.
Fields§
§err_code: Option<i32>0=成功
err_msg: Option<String>§nn_token_enable: Option<u32>NN (Futu Token app) 是否启用 (soft_token_enable)
nn_token_bind: Option<u32>NN token 是否已绑定 (soft_token_binded)
mm_token_enable: Option<u32>MM (moomoo Token app) 是否启用
mm_token_bind: Option<u32>MM token 是否已绑定
Implementations§
Source§impl GetTokenListResponse
impl GetTokenListResponse
Sourcepub fn err_code(&self) -> i32
pub fn err_code(&self) -> i32
Returns the value of err_code, or the default value if err_code is unset.
Sourcepub fn err_msg(&self) -> &str
pub fn err_msg(&self) -> &str
Returns the value of err_msg, or the default value if err_msg is unset.
Sourcepub fn nn_token_enable(&self) -> u32
pub fn nn_token_enable(&self) -> u32
Returns the value of nn_token_enable, or the default value if nn_token_enable is unset.
Sourcepub fn nn_token_bind(&self) -> u32
pub fn nn_token_bind(&self) -> u32
Returns the value of nn_token_bind, or the default value if nn_token_bind is unset.
Sourcepub fn mm_token_enable(&self) -> u32
pub fn mm_token_enable(&self) -> u32
Returns the value of mm_token_enable, or the default value if mm_token_enable is unset.
Sourcepub fn mm_token_bind(&self) -> u32
pub fn mm_token_bind(&self) -> u32
Returns the value of mm_token_bind, or the default value if mm_token_bind is unset.
Trait Implementations§
Source§impl Clone for GetTokenListResponse
impl Clone for GetTokenListResponse
Source§fn clone(&self) -> GetTokenListResponse
fn clone(&self) -> GetTokenListResponse
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 GetTokenListResponse
impl Debug for GetTokenListResponse
Source§impl Default for GetTokenListResponse
impl Default for GetTokenListResponse
Source§impl<'de> Deserialize<'de> for GetTokenListResponsewhere
GetTokenListResponse: Default,
impl<'de> Deserialize<'de> for GetTokenListResponsewhere
GetTokenListResponse: Default,
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 Hash for GetTokenListResponse
impl Hash for GetTokenListResponse
Source§impl Message for GetTokenListResponse
impl Message for GetTokenListResponse
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 GetTokenListResponse
impl PartialEq for GetTokenListResponse
Source§impl Serialize for GetTokenListResponse
impl Serialize for GetTokenListResponse
impl Eq for GetTokenListResponse
impl StructuralPartialEq for GetTokenListResponse
Auto Trait Implementations§
impl Freeze for GetTokenListResponse
impl RefUnwindSafe for GetTokenListResponse
impl Send for GetTokenListResponse
impl Sync for GetTokenListResponse
impl Unpin for GetTokenListResponse
impl UnsafeUnpin for GetTokenListResponse
impl UnwindSafe for GetTokenListResponse
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
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
Checks if this value is equivalent to the given key. Read more
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.