#[non_exhaustive]pub struct Pot {
pub id: String,
pub name: String,
pub style: Option<String>,
pub balance: i64,
pub currency: String,
pub goal_amount: Option<i64>,
pub current_account_id: String,
pub created: DateTime<Utc>,
pub updated: DateTime<Utc>,
pub deleted: bool,
}
Expand description
Representation of a Monzo pot
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: String
Unique ID for this Monzo pot
name: String
The human-readable name for this pot
style: Option<String>
A reference to the built in Monzo image for this pot
balance: i64
The pot balance, in the minor units of the specified currency
currency: String
Three letter code for the pot’s currency
goal_amount: Option<i64>
The goal balance for this pot, if set
current_account_id: String
The unique ID of the account associated with this pot
created: DateTime<Utc>
The datetime that the pot was created
updated: DateTime<Utc>
The datetime that the pot was last modified
deleted: bool
true if the pot has been deleted
Note that in future the API will simply not return pots which have been deleted
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pot
impl<'de> Deserialize<'de> for Pot
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
impl Eq for Pot
impl StructuralPartialEq for Pot
Auto Trait Implementations§
impl Freeze for Pot
impl RefUnwindSafe for Pot
impl Send for Pot
impl Sync for Pot
impl Unpin for Pot
impl UnwindSafe for Pot
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