pub struct SupAccountBasicInfo {
pub account_id: Option<u64>,
pub account_card_no: Option<String>,
pub intra_account_id: Option<u32>,
pub nn_uid: Option<u64>,
pub trade_account: Option<String>,
pub real_name: Option<String>,
pub is_online: Option<bool>,
pub state: Option<u32>,
pub type: Option<u32>,
pub id_card: Option<String>,
}Fields§
§account_id: Option<u64>业务账户ID
account_card_no: Option<String>业务账户卡号, 用于展示
intra_account_id: Option<u32>内部业务账户ID, 用于展示
nn_uid: Option<u64>用户牛牛号
trade_account: Option<String>账户名
real_name: Option<String>真是姓名
is_online: Option<bool>是否在线
state: Option<u32>账户状态, 取值参考 AccountState
type: Option<u32>账户类型, 取值参考 AccountType
id_card: Option<String>身份证号码
Implementations§
Source§impl SupAccountBasicInfo
impl SupAccountBasicInfo
Sourcepub fn account_id(&self) -> u64
pub fn account_id(&self) -> u64
Returns the value of account_id, or the default value if account_id is unset.
Sourcepub fn account_card_no(&self) -> &str
pub fn account_card_no(&self) -> &str
Returns the value of account_card_no, or the default value if account_card_no is unset.
Sourcepub fn intra_account_id(&self) -> u32
pub fn intra_account_id(&self) -> u32
Returns the value of intra_account_id, or the default value if intra_account_id is unset.
Sourcepub fn nn_uid(&self) -> u64
pub fn nn_uid(&self) -> u64
Returns the value of nn_uid, or the default value if nn_uid is unset.
Sourcepub fn trade_account(&self) -> &str
pub fn trade_account(&self) -> &str
Returns the value of trade_account, or the default value if trade_account is unset.
Sourcepub fn real_name(&self) -> &str
pub fn real_name(&self) -> &str
Returns the value of real_name, or the default value if real_name is unset.
Trait Implementations§
Source§impl Clone for SupAccountBasicInfo
impl Clone for SupAccountBasicInfo
Source§fn clone(&self) -> SupAccountBasicInfo
fn clone(&self) -> SupAccountBasicInfo
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 SupAccountBasicInfo
impl Debug for SupAccountBasicInfo
Source§impl Default for SupAccountBasicInfo
impl Default for SupAccountBasicInfo
Source§impl Hash for SupAccountBasicInfo
impl Hash for SupAccountBasicInfo
Source§impl Message for SupAccountBasicInfo
impl Message for SupAccountBasicInfo
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 SupAccountBasicInfo
impl PartialEq for SupAccountBasicInfo
impl Eq for SupAccountBasicInfo
impl StructuralPartialEq for SupAccountBasicInfo
Auto Trait Implementations§
impl Freeze for SupAccountBasicInfo
impl RefUnwindSafe for SupAccountBasicInfo
impl Send for SupAccountBasicInfo
impl Sync for SupAccountBasicInfo
impl Unpin for SupAccountBasicInfo
impl UnsafeUnpin for SupAccountBasicInfo
impl UnwindSafe for SupAccountBasicInfo
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.