[][src]Struct monzo_lib::balance::Balance

pub struct Balance {
    pub balance: i64,
    pub total_balance: i64,
    pub currency: String,
    pub spend_today: i64,
}

The balance of a Monzo Account

Fields

balance: i64

The account balance, in the minor units of the listed currency. ie for GBP, the balance is in pence.

total_balance: i64

The total account balance. I haven't figured out what the difference is yet

currency: String

three-letter currency code for the account

spend_today: i64

total expenditure so far this calendar day

Trait Implementations

impl Debug for Balance[src]

impl<'de> Deserialize<'de> for Balance[src]

Auto Trait Implementations

impl Send for Balance

impl Sync for Balance

impl Unpin for Balance

impl UnwindSafe for Balance

impl RefUnwindSafe for Balance

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]