pub struct AccountBalance {
pub total: NearToken,
pub available: NearToken,
pub locked: NearToken,
pub storage_cost: NearToken,
pub storage_usage: u64,
}Expand description
Simplified balance info.
Fields§
§total: NearTokenTotal balance (available + locked).
available: NearTokenAvailable balance (spendable, accounting for storage).
locked: NearTokenLocked balance (staked).
storage_cost: NearTokenAmount reserved for storage costs.
storage_usage: u64Storage used in bytes.
Trait Implementations§
Source§impl Clone for AccountBalance
impl Clone for AccountBalance
Source§fn clone(&self) -> AccountBalance
fn clone(&self) -> AccountBalance
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccountBalance
impl Debug for AccountBalance
Source§impl Display for AccountBalance
impl Display for AccountBalance
Source§impl From<AccountView> for AccountBalance
impl From<AccountView> for AccountBalance
Source§fn from(view: AccountView) -> Self
fn from(view: AccountView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AccountBalance
impl RefUnwindSafe for AccountBalance
impl Send for AccountBalance
impl Sync for AccountBalance
impl Unpin for AccountBalance
impl UnsafeUnpin for AccountBalance
impl UnwindSafe for AccountBalance
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.