pub struct Account {
pub id: String,
pub name: String,
pub _type: Type,
pub on_budget: bool,
pub closed: bool,
pub note: Option<String>,
pub balance: i64,
pub cleared_balance: i64,
pub uncleared_balance: i64,
pub transfer_payee_id: String,
pub deleted: bool,
}Fields§
§id: String§name: String§_type: TypeThe type of account. Note: payPal, merchantAccount, investmentAccount, and mortgage types have been deprecated and will be removed in the future.
on_budget: boolWhether this account is on budget or not
closed: boolWhether this account is closed or not
note: Option<String>§balance: i64The current balance of the account in milliunits format
cleared_balance: i64The current cleared balance of the account in milliunits format
uncleared_balance: i64The current uncleared balance of the account in milliunits format
transfer_payee_id: StringThe payee id which should be used when transferring to this account
deleted: boolWhether or not the account has been deleted. Deleted accounts will only be included in delta requests.
Implementations§
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 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more