Struct iota_wallet::account::types::AccountBalance
source · [−]pub struct AccountBalance {
pub base_coin: BaseCoinBalance,
pub required_storage_deposit: u64,
pub native_tokens: Vec<NativeTokensBalance>,
pub nfts: Vec<NftId>,
pub aliases: Vec<AliasId>,
pub foundries: Vec<FoundryId>,
pub potentially_locked_outputs: HashMap<OutputId, bool>,
}
Expand description
The balance of an account, returned from crate::account::handle::AccountHandle::sync()
and
crate::account::handle::AccountHandle::balance()
.
Fields
base_coin: BaseCoinBalance
Total and available amount of the base coin
required_storage_deposit: u64
Current required storage deposit amount
native_tokens: Vec<NativeTokensBalance>
Native tokens
nfts: Vec<NftId>
Nfts
aliases: Vec<AliasId>
Aliases
foundries: Vec<FoundryId>
Foundries
potentially_locked_outputs: HashMap<OutputId, bool>
Outputs with multiple unlock conditions and if they can currently be spent or not. If there is a
[TimelockUnlockCondition
] or [ExpirationUnlockCondition
] this can change at any time
Trait Implementations
sourceimpl Clone for AccountBalance
impl Clone for AccountBalance
sourcefn clone(&self) -> AccountBalance
fn clone(&self) -> AccountBalance
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AccountBalance
impl Debug for AccountBalance
sourceimpl Default for AccountBalance
impl Default for AccountBalance
sourcefn default() -> AccountBalance
fn default() -> AccountBalance
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AccountBalance
impl<'de> Deserialize<'de> for AccountBalance
sourcefn 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
sourceimpl From<&AccountBalance> for AccountBalanceDto
impl From<&AccountBalance> for AccountBalanceDto
sourcefn from(value: &AccountBalance) -> Self
fn from(value: &AccountBalance) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<AccountBalance> for AccountBalance
impl PartialEq<AccountBalance> for AccountBalance
sourcefn eq(&self, other: &AccountBalance) -> bool
fn eq(&self, other: &AccountBalance) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AccountBalance) -> bool
fn ne(&self, other: &AccountBalance) -> bool
This method tests for !=
.
sourceimpl Serialize for AccountBalance
impl Serialize for AccountBalance
impl Eq for AccountBalance
impl StructuralEq for AccountBalance
impl StructuralPartialEq for AccountBalance
Auto Trait Implementations
impl RefUnwindSafe for AccountBalance
impl Send for AccountBalance
impl Sync for AccountBalance
impl Unpin for AccountBalance
impl UnwindSafe for AccountBalance
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more