[−][src]Struct ynab_api::models::account::Account
Fields
id: String
name: String
_type: Type
The type of account. Note: payPal, merchantAccount, investmentAccount, and mortgage types have been deprecated and will be removed in the future.
on_budget: bool
Whether this account is on budget or not
closed: bool
Whether this account is closed or not
note: Option<String>
balance: i64
The current balance of the account in milliunits format
cleared_balance: i64
The current cleared balance of the account in milliunits format
uncleared_balance: i64
The current uncleared balance of the account in milliunits format
transfer_payee_id: String
The payee id which should be used when transferring to this account
deleted: bool
Whether or not the account has been deleted. Deleted accounts will only be included in delta requests.
Methods
impl Account
[src]
pub fn new(
id: String,
name: String,
_type: Type,
on_budget: bool,
closed: bool,
balance: i64,
cleared_balance: i64,
uncleared_balance: i64,
transfer_payee_id: String,
deleted: bool
) -> Account
[src]
id: String,
name: String,
_type: Type,
on_budget: bool,
closed: bool,
balance: i64,
cleared_balance: i64,
uncleared_balance: i64,
transfer_payee_id: String,
deleted: bool
) -> Account
Trait Implementations
impl PartialEq<Account> for Account
[src]
impl Debug for Account
[src]
impl StructuralPartialEq for Account
[src]
impl Serialize for Account
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Account
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
impl RefUnwindSafe for Account
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,