pub struct BalanceView {
pub debits_pending: u128,
pub debits_posted: u128,
pub credits_pending: u128,
pub credits_posted: u128,
pub available: u128,
pub as_of_seq: u64,
}Expand description
Read-only balance projection returned by crate::LedgerBackend::balance.
Fields§
§debits_pending: u128Outstanding debit holds.
debits_posted: u128Settled debits.
credits_pending: u128Outstanding credit holds.
credits_posted: u128Settled credits.
available: u128Spendable amount (see Account::available).
as_of_seq: u64The journal sequence this view reflects.
Trait Implementations§
Source§impl Clone for BalanceView
impl Clone for BalanceView
Source§fn clone(&self) -> BalanceView
fn clone(&self) -> BalanceView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BalanceView
impl Debug for BalanceView
Source§impl<'de> Deserialize<'de> for BalanceView
impl<'de> Deserialize<'de> for BalanceView
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BalanceView
impl PartialEq for BalanceView
Source§fn eq(&self, other: &BalanceView) -> bool
fn eq(&self, other: &BalanceView) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BalanceView
impl Serialize for BalanceView
impl Copy for BalanceView
impl Eq for BalanceView
impl StructuralPartialEq for BalanceView
Auto Trait Implementations§
impl Freeze for BalanceView
impl RefUnwindSafe for BalanceView
impl Send for BalanceView
impl Sync for BalanceView
impl Unpin for BalanceView
impl UnsafeUnpin for BalanceView
impl UnwindSafe for BalanceView
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