#[non_exhaustive]pub struct TokenBalance {
pub owner_identifier: Option<OwnerIdentifier>,
pub token_identifier: Option<TokenIdentifier>,
pub balance: String,
pub at_blockchain_instant: Option<BlockchainInstant>,
pub last_updated_time: Option<BlockchainInstant>,
}
Expand description
The balance of the token.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.owner_identifier: Option<OwnerIdentifier>
The container for the identifier of the owner.
token_identifier: Option<TokenIdentifier>
The identifier for the token, including the unique token ID and its blockchain network.
balance: String
The container of the token balance.
at_blockchain_instant: Option<BlockchainInstant>
The time for when the TokenBalance is requested or the current time if a time is not provided in the request.
This time will only be recorded up to the second.
last_updated_time: Option<BlockchainInstant>
The Timestamp
of the last transaction at which the balance for the token in the wallet was updated.
Implementations§
source§impl TokenBalance
impl TokenBalance
sourcepub fn owner_identifier(&self) -> Option<&OwnerIdentifier>
pub fn owner_identifier(&self) -> Option<&OwnerIdentifier>
The container for the identifier of the owner.
sourcepub fn token_identifier(&self) -> Option<&TokenIdentifier>
pub fn token_identifier(&self) -> Option<&TokenIdentifier>
The identifier for the token, including the unique token ID and its blockchain network.
sourcepub fn at_blockchain_instant(&self) -> Option<&BlockchainInstant>
pub fn at_blockchain_instant(&self) -> Option<&BlockchainInstant>
The time for when the TokenBalance is requested or the current time if a time is not provided in the request.
This time will only be recorded up to the second.
sourcepub fn last_updated_time(&self) -> Option<&BlockchainInstant>
pub fn last_updated_time(&self) -> Option<&BlockchainInstant>
The Timestamp
of the last transaction at which the balance for the token in the wallet was updated.
source§impl TokenBalance
impl TokenBalance
sourcepub fn builder() -> TokenBalanceBuilder
pub fn builder() -> TokenBalanceBuilder
Creates a new builder-style object to manufacture TokenBalance
.
Trait Implementations§
source§impl Clone for TokenBalance
impl Clone for TokenBalance
source§fn clone(&self) -> TokenBalance
fn clone(&self) -> TokenBalance
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TokenBalance
impl Debug for TokenBalance
source§impl PartialEq for TokenBalance
impl PartialEq for TokenBalance
source§fn eq(&self, other: &TokenBalance) -> bool
fn eq(&self, other: &TokenBalance) -> bool
self
and other
values to be equal, and is used
by ==
.