pub struct SessionAuth {
pub stock_hk_auth: Option<i32>,
pub stock_us_auth: Option<i32>,
pub stock_cn_auth: Option<i32>,
pub stock_sg_auth: Option<i32>,
pub stock_ca_auth: Option<i32>,
pub stock_au_auth: Option<i32>,
pub stock_cn_bjs_auth: Option<i32>,
pub stock_ja_auth: Option<i32>,
pub stock_my_auth: Option<i32>,
}Fields§
§stock_hk_auth: Option<i32>港股权限
stock_us_auth: Option<i32>美股权限
stock_cn_auth: Option<i32>A股权限
stock_sg_auth: Option<i32>新加坡股票权限
stock_ca_auth: Option<i32>加拿大股票权限
stock_au_auth: Option<i32>澳大利亚股票权限
stock_cn_bjs_auth: Option<i32>A股北交所权限
stock_ja_auth: Option<i32>日本权限
stock_my_auth: Option<i32>马来西亚权限
Implementations§
Source§impl SessionAuth
impl SessionAuth
Sourcepub fn stock_hk_auth(&self) -> AuthState
pub fn stock_hk_auth(&self) -> AuthState
Returns the enum value of stock_hk_auth, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_stock_hk_auth(&mut self, value: AuthState)
pub fn set_stock_hk_auth(&mut self, value: AuthState)
Sets stock_hk_auth to the provided enum value.
Sourcepub fn stock_us_auth(&self) -> AuthState
pub fn stock_us_auth(&self) -> AuthState
Returns the enum value of stock_us_auth, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_stock_us_auth(&mut self, value: AuthState)
pub fn set_stock_us_auth(&mut self, value: AuthState)
Sets stock_us_auth to the provided enum value.
Sourcepub fn stock_cn_auth(&self) -> AuthState
pub fn stock_cn_auth(&self) -> AuthState
Returns the enum value of stock_cn_auth, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_stock_cn_auth(&mut self, value: AuthState)
pub fn set_stock_cn_auth(&mut self, value: AuthState)
Sets stock_cn_auth to the provided enum value.
Sourcepub fn stock_sg_auth(&self) -> AuthState
pub fn stock_sg_auth(&self) -> AuthState
Returns the enum value of stock_sg_auth, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_stock_sg_auth(&mut self, value: AuthState)
pub fn set_stock_sg_auth(&mut self, value: AuthState)
Sets stock_sg_auth to the provided enum value.
Sourcepub fn stock_ca_auth(&self) -> AuthState
pub fn stock_ca_auth(&self) -> AuthState
Returns the enum value of stock_ca_auth, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_stock_ca_auth(&mut self, value: AuthState)
pub fn set_stock_ca_auth(&mut self, value: AuthState)
Sets stock_ca_auth to the provided enum value.
Sourcepub fn stock_au_auth(&self) -> AuthState
pub fn stock_au_auth(&self) -> AuthState
Returns the enum value of stock_au_auth, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_stock_au_auth(&mut self, value: AuthState)
pub fn set_stock_au_auth(&mut self, value: AuthState)
Sets stock_au_auth to the provided enum value.
Sourcepub fn stock_cn_bjs_auth(&self) -> AuthState
pub fn stock_cn_bjs_auth(&self) -> AuthState
Returns the enum value of stock_cn_bjs_auth, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_stock_cn_bjs_auth(&mut self, value: AuthState)
pub fn set_stock_cn_bjs_auth(&mut self, value: AuthState)
Sets stock_cn_bjs_auth to the provided enum value.
Sourcepub fn stock_ja_auth(&self) -> AuthState
pub fn stock_ja_auth(&self) -> AuthState
Returns the enum value of stock_ja_auth, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_stock_ja_auth(&mut self, value: AuthState)
pub fn set_stock_ja_auth(&mut self, value: AuthState)
Sets stock_ja_auth to the provided enum value.
Sourcepub fn stock_my_auth(&self) -> AuthState
pub fn stock_my_auth(&self) -> AuthState
Returns the enum value of stock_my_auth, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_stock_my_auth(&mut self, value: AuthState)
pub fn set_stock_my_auth(&mut self, value: AuthState)
Sets stock_my_auth to the provided enum value.
Trait Implementations§
Source§impl Clone for SessionAuth
impl Clone for SessionAuth
Source§fn clone(&self) -> SessionAuth
fn clone(&self) -> SessionAuth
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SessionAuth
impl Debug for SessionAuth
Source§impl Default for SessionAuth
impl Default for SessionAuth
Source§impl Hash for SessionAuth
impl Hash for SessionAuth
Source§impl Message for SessionAuth
impl Message for SessionAuth
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 SessionAuth
impl PartialEq for SessionAuth
impl Copy for SessionAuth
impl Eq for SessionAuth
impl StructuralPartialEq for SessionAuth
Auto Trait Implementations§
impl Freeze for SessionAuth
impl RefUnwindSafe for SessionAuth
impl Send for SessionAuth
impl Sync for SessionAuth
impl Unpin for SessionAuth
impl UnsafeUnpin for SessionAuth
impl UnwindSafe for SessionAuth
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.