#[non_exhaustive]pub struct Account {
pub id: String,
pub closed: bool,
pub created: DateTime<Utc>,
pub description: String,
pub account_type: Type,
pub currency: String,
pub country_code: String,
pub owners: Vec<Owner>,
pub business_id: Option<String>,
pub account_number: String,
pub sort_code: 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: String
The unique ID of the account
closed: bool
Whether the account has been closed
created: DateTime<Utc>
The DateTime
that the account was created
description: String
The account description
account_type: Type
The type of the account
currency: String
This the a three-letter currency code
country_code: String
This 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
account_number: String
The account number
sort_code: String
The sort code
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