Struct rosetta_types::balance_exemption::BalanceExemption
source · pub struct BalanceExemption {
pub sub_account_address: Option<String>,
pub currency: Option<Currency>,
pub exemption_type: Option<ExemptionType>,
}
Expand description
BalanceExemption : BalanceExemption indicates that the balance for an exempt account could change without a corresponding Operation. This typically occurs with staking rewards, vesting balances, and Currencies with a dynamic supply. Currently, it is possible to exempt an account from strict reconciliation by SubAccountIdentifier.Address or by Currency. This means that any account with SubAccountIdentifier.Address would be exempt or any balance of a particular Currency would be exempt, respectively. BalanceExemptions should be used sparingly as they may introduce significant complexity for integrators that attempt to reconcile all account balance changes. If your implementation relies on any BalanceExemptions, you MUST implement historical balance lookup (the ability to query an account balance at any BlockIdentifier).
Fields§
§sub_account_address: Option<String>
SubAccountAddress is the SubAccountIdentifier.Address that the BalanceExemption applies to (regardless of the value of SubAccountIdentifier.Metadata).
currency: Option<Currency>
§exemption_type: Option<ExemptionType>
Implementations§
source§impl BalanceExemption
impl BalanceExemption
sourcepub fn new() -> BalanceExemption
pub fn new() -> BalanceExemption
BalanceExemption indicates that the balance for an exempt account could change without a corresponding Operation. This typically occurs with staking rewards, vesting balances, and Currencies with a dynamic supply. Currently, it is possible to exempt an account from strict reconciliation by SubAccountIdentifier.Address or by Currency. This means that any account with SubAccountIdentifier.Address would be exempt or any balance of a particular Currency would be exempt, respectively. BalanceExemptions should be used sparingly as they may introduce significant complexity for integrators that attempt to reconcile all account balance changes. If your implementation relies on any BalanceExemptions, you MUST implement historical balance lookup (the ability to query an account balance at any BlockIdentifier).
Trait Implementations§
source§impl Clone for BalanceExemption
impl Clone for BalanceExemption
source§fn clone(&self) -> BalanceExemption
fn clone(&self) -> BalanceExemption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BalanceExemption
impl Debug for BalanceExemption
source§impl Default for BalanceExemption
impl Default for BalanceExemption
source§fn default() -> BalanceExemption
fn default() -> BalanceExemption
source§impl<'de> Deserialize<'de> for BalanceExemption
impl<'de> Deserialize<'de> for BalanceExemption
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 PartialEq<BalanceExemption> for BalanceExemption
impl PartialEq<BalanceExemption> for BalanceExemption
source§fn eq(&self, other: &BalanceExemption) -> bool
fn eq(&self, other: &BalanceExemption) -> bool
self
and other
values to be equal, and is used
by ==
.