pub struct Balance {
pub balance: i64,
pub total_balance: i64,
pub currency: String,
pub spend_today: i64,
}
Expand description
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§
Source§impl<'de> Deserialize<'de> for Balance
impl<'de> Deserialize<'de> for Balance
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
Auto Trait Implementations§
impl Freeze for Balance
impl RefUnwindSafe for Balance
impl Send for Balance
impl Sync for Balance
impl Unpin for Balance
impl UnwindSafe for Balance
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