pub struct BalanceDetails {
pub current: Decimal,
pub available: Option<Decimal>,
pub limit: Option<Decimal>,
pub overdrawn: Option<bool>,
pub currency: Currency,
}Expand description
The account balance.
[https://developers.akahu.nz/docs/the-account-model#balance]
Fields§
§current: DecimalThe current account balance.
A negative balance indicates the amount owed to the account issuer. For example a checking account in overdraft will have a negative balance, same as the amount owed on a credit card or the principal remaining on a loan.
available: Option<Decimal>The balance that is currently available to the account holder.
limit: Option<Decimal>The credit limit for this account.
For example a credit card limit or an overdraft limit. This value is only present when provided directly by the connected financial institution.
overdrawn: Option<bool>A boolean indicating whether this account is in overdraft.
currency: CurrencyThe 3 letter ISO 4217 currency code that this balance is in (e.g. NZD).
Trait Implementations§
Source§impl Clone for BalanceDetails
impl Clone for BalanceDetails
Source§fn clone(&self) -> BalanceDetails
fn clone(&self) -> BalanceDetails
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 BalanceDetails
impl Debug for BalanceDetails
Source§impl<'de> Deserialize<'de> for BalanceDetails
impl<'de> Deserialize<'de> for BalanceDetails
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 BalanceDetails
impl PartialEq for BalanceDetails
Source§impl Serialize for BalanceDetails
impl Serialize for BalanceDetails
impl Eq for BalanceDetails
impl StructuralPartialEq for BalanceDetails
Auto Trait Implementations§
impl Freeze for BalanceDetails
impl RefUnwindSafe for BalanceDetails
impl Send for BalanceDetails
impl Sync for BalanceDetails
impl Unpin for BalanceDetails
impl UnwindSafe for BalanceDetails
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