pub struct ProtoOaDepositWithdraw {
pub operation_type: i32,
pub balance_history_id: i64,
pub balance: i64,
pub delta: i64,
pub change_balance_timestamp: i64,
pub external_note: Option<String>,
pub balance_version: Option<i64>,
pub equity: Option<i64>,
pub money_digits: Option<u32>,
}Expand description
- Account deposit/withdrawal operation entity.
Fields§
§operation_type: i32Type of the operation. Deposit/Withdrawal.
balance_history_id: i64The unique ID of the deposit/withdrawal operation.
balance: i64Account balance after the operation was executed.
delta: i64Amount of deposit/withdrawal operation.
change_balance_timestamp: i64The Unix time in milliseconds when deposit/withdrawal operation was executed.
external_note: Option<String>Note added to operation. Visible to the trader.
balance_version: Option<i64>Balance version used to identify the final balance. Increments each time when the trader’s account balance is changed.
equity: Option<i64>Total account’s equity after balance operation was executed.
money_digits: Option<u32>Specifies the exponent of the monetary values. E.g. moneyDigits = 8 must be interpret as business value multiplied by 10^8, then real balance would be 10053099944 / 10^8 = 100.53099944. Affects balance, delta, equity.
Implementations§
Source§impl ProtoOaDepositWithdraw
impl ProtoOaDepositWithdraw
Sourcepub fn operation_type(&self) -> ProtoOaChangeBalanceType
pub fn operation_type(&self) -> ProtoOaChangeBalanceType
Returns the enum value of operation_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_operation_type(&mut self, value: ProtoOaChangeBalanceType)
pub fn set_operation_type(&mut self, value: ProtoOaChangeBalanceType)
Sets operation_type to the provided enum value.
Sourcepub fn external_note(&self) -> &str
pub fn external_note(&self) -> &str
Returns the value of external_note, or the default value if external_note is unset.
Sourcepub fn balance_version(&self) -> i64
pub fn balance_version(&self) -> i64
Returns the value of balance_version, or the default value if balance_version is unset.
Sourcepub fn equity(&self) -> i64
pub fn equity(&self) -> i64
Returns the value of equity, or the default value if equity is unset.
Sourcepub fn money_digits(&self) -> u32
pub fn money_digits(&self) -> u32
Returns the value of money_digits, or the default value if money_digits is unset.
Trait Implementations§
Source§impl Clone for ProtoOaDepositWithdraw
impl Clone for ProtoOaDepositWithdraw
Source§fn clone(&self) -> ProtoOaDepositWithdraw
fn clone(&self) -> ProtoOaDepositWithdraw
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProtoOaDepositWithdraw
impl Debug for ProtoOaDepositWithdraw
Source§impl Default for ProtoOaDepositWithdraw
impl Default for ProtoOaDepositWithdraw
Source§impl<'de> Deserialize<'de> for ProtoOaDepositWithdraw
impl<'de> Deserialize<'de> for ProtoOaDepositWithdraw
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 Hash for ProtoOaDepositWithdraw
impl Hash for ProtoOaDepositWithdraw
Source§impl Message for ProtoOaDepositWithdraw
impl Message for ProtoOaDepositWithdraw
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 ProtoOaDepositWithdraw
impl PartialEq for ProtoOaDepositWithdraw
Source§impl Serialize for ProtoOaDepositWithdraw
impl Serialize for ProtoOaDepositWithdraw
impl Eq for ProtoOaDepositWithdraw
impl StructuralPartialEq for ProtoOaDepositWithdraw
Auto Trait Implementations§
impl Freeze for ProtoOaDepositWithdraw
impl RefUnwindSafe for ProtoOaDepositWithdraw
impl Send for ProtoOaDepositWithdraw
impl Sync for ProtoOaDepositWithdraw
impl Unpin for ProtoOaDepositWithdraw
impl UnwindSafe for ProtoOaDepositWithdraw
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.