pub struct AccountInfoReq {
pub msg_header: Option<MsgHeader>,
pub union_currency: Option<String>,
pub without_zero_quantity_pstn: Option<bool>,
}Expand description
cmd: 3xxx 获取用户账户信息
Fields§
§msg_header: Option<MsgHeader>§union_currency: Option<String>指定union_fund_info和union_today_statistic的换算币种,标准货币代码,参考ISO_4217,目前支持币种如HKD, USD,CNH,SGD,JPY
without_zero_quantity_pstn: Option<bool>过滤持仓参数
是否返回数量为0的持仓, 默认返回
Implementations§
Source§impl AccountInfoReq
impl AccountInfoReq
Sourcepub fn union_currency(&self) -> &str
pub fn union_currency(&self) -> &str
Returns the value of union_currency, or the default value if union_currency is unset.
Sourcepub fn without_zero_quantity_pstn(&self) -> bool
pub fn without_zero_quantity_pstn(&self) -> bool
Returns the value of without_zero_quantity_pstn, or the default value if without_zero_quantity_pstn is unset.
Trait Implementations§
Source§impl Clone for AccountInfoReq
impl Clone for AccountInfoReq
Source§fn clone(&self) -> AccountInfoReq
fn clone(&self) -> AccountInfoReq
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 AccountInfoReq
impl Debug for AccountInfoReq
Source§impl Default for AccountInfoReq
impl Default for AccountInfoReq
Source§impl Hash for AccountInfoReq
impl Hash for AccountInfoReq
Source§impl Message for AccountInfoReq
impl Message for AccountInfoReq
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 AccountInfoReq
impl PartialEq for AccountInfoReq
impl Eq for AccountInfoReq
impl StructuralPartialEq for AccountInfoReq
Auto Trait Implementations§
impl Freeze for AccountInfoReq
impl RefUnwindSafe for AccountInfoReq
impl Send for AccountInfoReq
impl Sync for AccountInfoReq
impl Unpin for AccountInfoReq
impl UnsafeUnpin for AccountInfoReq
impl UnwindSafe for AccountInfoReq
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.