pub struct AccCashInfo {
pub currency: Option<i32>,
pub cash: Option<f64>,
pub available_balance: Option<f64>,
pub net_cash_power: Option<f64>,
}Expand description
账户现金信息,目前仅用于期货账户
Fields§
§currency: Option<i32>货币类型,取值参考 Currency
cash: Option<f64>现金结余
available_balance: Option<f64>现金可提金额
net_cash_power: Option<f64>现金购买力
Implementations§
Source§impl AccCashInfo
impl AccCashInfo
Sourcepub fn currency(&self) -> i32
pub fn currency(&self) -> i32
Returns the value of currency, or the default value if currency is unset.
Sourcepub fn available_balance(&self) -> f64
pub fn available_balance(&self) -> f64
Returns the value of available_balance, or the default value if available_balance is unset.
Sourcepub fn net_cash_power(&self) -> f64
pub fn net_cash_power(&self) -> f64
Returns the value of net_cash_power, or the default value if net_cash_power is unset.
Trait Implementations§
Source§impl Clone for AccCashInfo
impl Clone for AccCashInfo
Source§fn clone(&self) -> AccCashInfo
fn clone(&self) -> AccCashInfo
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 AccCashInfo
impl Debug for AccCashInfo
Source§impl Default for AccCashInfo
impl Default for AccCashInfo
Source§impl<'de> Deserialize<'de> for AccCashInfowhere
AccCashInfo: Default,
impl<'de> Deserialize<'de> for AccCashInfowhere
AccCashInfo: 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 Message for AccCashInfo
impl Message for AccCashInfo
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 AccCashInfo
impl PartialEq for AccCashInfo
Source§impl Serialize for AccCashInfo
impl Serialize for AccCashInfo
impl Copy for AccCashInfo
impl StructuralPartialEq for AccCashInfo
Auto Trait Implementations§
impl Freeze for AccCashInfo
impl RefUnwindSafe for AccCashInfo
impl Send for AccCashInfo
impl Sync for AccCashInfo
impl Unpin for AccCashInfo
impl UnwindSafe for AccCashInfo
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