[][src]Struct ynab_api::models::account::Account

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: Stringname: 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]

Trait Implementations

impl PartialEq<Account> for Account[src]

impl Debug for Account[src]

impl StructuralPartialEq for Account[src]

impl Serialize for Account[src]

impl<'de> Deserialize<'de> for Account[src]

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]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err