pub struct Account {Show 13 fields
pub account_id: Option<u64>,
pub market: Option<u32>,
pub nn_uid: Option<u64>,
pub noti_type: Option<u32>,
pub is_unified: Option<u32>,
pub risk_level: Option<u32>,
pub req_id: Option<String>,
pub priority_symbol: Option<String>,
pub broker_id: Option<u32>,
pub op_nn_uid: Option<u64>,
pub sub_account_id: Option<u64>,
pub asset_category: Option<u32>,
pub ftrace_context: Option<String>,
}Expand description
账户标识 (从 mobile Account proto 抽 minimal 字段)
Fields§
§account_id: Option<u64>业务账户 ID
market: Option<u32>所属市场 (HK=1 / US=11 / SH=21 / SZ=22 等)
nn_uid: Option<u64>牛牛号 (可选)
noti_type: Option<u32>PushNotiType
is_unified: Option<u32>非 0 = 大账户
risk_level: Option<u32>RiskLevel
req_id: Option<String>组合期权/风控 request id
priority_symbol: Option<String>优先平仓 symbol
broker_id: Option<u32>§op_nn_uid: Option<u64>操作人/被授权人
sub_account_id: Option<u64>§asset_category: Option<u32>JP 信用账户资产分类维度
ftrace_context: Option<String>Implementations§
Source§impl Account
impl Account
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 market(&self) -> u32
pub fn market(&self) -> u32
Returns the value of market, or the default value if market 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 noti_type(&self) -> u32
pub fn noti_type(&self) -> u32
Returns the value of noti_type, or the default value if noti_type is unset.
Sourcepub fn is_unified(&self) -> u32
pub fn is_unified(&self) -> u32
Returns the value of is_unified, or the default value if is_unified is unset.
Sourcepub fn risk_level(&self) -> u32
pub fn risk_level(&self) -> u32
Returns the value of risk_level, or the default value if risk_level is unset.
Sourcepub fn req_id(&self) -> &str
pub fn req_id(&self) -> &str
Returns the value of req_id, or the default value if req_id is unset.
Sourcepub fn priority_symbol(&self) -> &str
pub fn priority_symbol(&self) -> &str
Returns the value of priority_symbol, or the default value if priority_symbol is unset.
Sourcepub fn broker_id(&self) -> u32
pub fn broker_id(&self) -> u32
Returns the value of broker_id, or the default value if broker_id is unset.
Sourcepub fn op_nn_uid(&self) -> u64
pub fn op_nn_uid(&self) -> u64
Returns the value of op_nn_uid, or the default value if op_nn_uid is unset.
Sourcepub fn sub_account_id(&self) -> u64
pub fn sub_account_id(&self) -> u64
Returns the value of sub_account_id, or the default value if sub_account_id is unset.
Sourcepub fn asset_category(&self) -> u32
pub fn asset_category(&self) -> u32
Returns the value of asset_category, or the default value if asset_category is unset.
Sourcepub fn ftrace_context(&self) -> &str
pub fn ftrace_context(&self) -> &str
Returns the value of ftrace_context, or the default value if ftrace_context is unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
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>,
Source§impl Message for Account
impl Message for Account
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.impl Eq for Account
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnsafeUnpin for Account
impl UnwindSafe for Account
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.