pub struct ProtoOaBonusDepositWithdraw {
pub operation_type: i32,
pub bonus_history_id: i64,
pub manager_bonus: i64,
pub manager_delta: i64,
pub ib_bonus: i64,
pub ib_delta: i64,
pub change_bonus_timestamp: i64,
pub external_note: Option<String>,
pub introducing_broker_id: Option<i64>,
pub money_digits: Option<u32>,
}Expand description
- Bonus deposit/withdrawal entity.
Fields§
§operation_type: i32Type of the operation. Deposit/Withdrawal.
bonus_history_id: i64The unique ID of the bonus deposit/withdrawal operation.
manager_bonus: i64Total amount of broker’s bonus after the operation.
manager_delta: i64Amount of bonus deposited/withdrew by manager.
ib_bonus: i64Total amount of introducing broker’s bonus after the operation.
ib_delta: i64Amount of bonus deposited/withdrew by introducing broker.
change_bonus_timestamp: i64The Unix time in milliseconds when the bonus operation was executed.
external_note: Option<String>Note added to operation. Visible to the trader.
introducing_broker_id: Option<i64>ID of introducing broker who deposited/withdrew bonus.
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 managerBonus, managerDelta, ibBonus, ibDelta.
Implementations§
Source§impl ProtoOaBonusDepositWithdraw
impl ProtoOaBonusDepositWithdraw
Sourcepub fn operation_type(&self) -> ProtoOaChangeBonusType
pub fn operation_type(&self) -> ProtoOaChangeBonusType
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: ProtoOaChangeBonusType)
pub fn set_operation_type(&mut self, value: ProtoOaChangeBonusType)
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 introducing_broker_id(&self) -> i64
pub fn introducing_broker_id(&self) -> i64
Returns the value of introducing_broker_id, or the default value if introducing_broker_id 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 ProtoOaBonusDepositWithdraw
impl Clone for ProtoOaBonusDepositWithdraw
Source§fn clone(&self) -> ProtoOaBonusDepositWithdraw
fn clone(&self) -> ProtoOaBonusDepositWithdraw
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProtoOaBonusDepositWithdraw
impl Debug for ProtoOaBonusDepositWithdraw
Source§impl<'de> Deserialize<'de> for ProtoOaBonusDepositWithdraw
impl<'de> Deserialize<'de> for ProtoOaBonusDepositWithdraw
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 ProtoOaBonusDepositWithdraw
impl Hash for ProtoOaBonusDepositWithdraw
Source§impl Message for ProtoOaBonusDepositWithdraw
impl Message for ProtoOaBonusDepositWithdraw
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 ProtoOaBonusDepositWithdraw
impl StructuralPartialEq for ProtoOaBonusDepositWithdraw
Auto Trait Implementations§
impl Freeze for ProtoOaBonusDepositWithdraw
impl RefUnwindSafe for ProtoOaBonusDepositWithdraw
impl Send for ProtoOaBonusDepositWithdraw
impl Sync for ProtoOaBonusDepositWithdraw
impl Unpin for ProtoOaBonusDepositWithdraw
impl UnwindSafe for ProtoOaBonusDepositWithdraw
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.