#[non_exhaustive]pub struct Account {
pub id: String,
pub account_type: Type,
pub closed: bool,
pub created: DateTime<Utc>,
pub description: String,
pub currency: String,
pub country_code: String,
pub owners: Vec<Owner>,
pub business_id: Option<String>,
}Expand description
A struct representing a Monzo Account
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: StringThe unique ID of the account
account_type: TypeThe account details including type and banking information
closed: boolWhether the account has been closed
created: DateTime<Utc>The DateTime that the account was created
description: StringThe account description
currency: StringThis the a three-letter currency code
country_code: StringThis is a country code for the country where the account is held
owners: Vec<Owner>A vector of account owners
business_id: Option<String>The business ID
This is only set for business accounts
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
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 Account
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
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