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

pub struct Account {
    pub created_at: Option<String>,
    pub updated_at: Option<String>,
    pub name: String,
    pub _type: Type,
    pub iban: Option<String>,
    pub bic: Option<String>,
    pub account_number: Option<String>,
    pub opening_balance: Option<f64>,
    pub opening_balance_date: Option<String>,
    pub virtual_balance: Option<f64>,
    pub current_balance: Option<f64>,
    pub current_balance_date: Option<String>,
    pub currency_id: Option<i32>,
    pub currency_code: Option<String>,
    pub currency_symbol: Option<String>,
    pub currency_decimal_places: Option<i32>,
    pub active: Option<bool>,
    pub include_net_worth: Option<bool>,
    pub account_role: Option<AccountRole>,
    pub credit_card_type: Option<CreditCardType>,
    pub monthly_payment_date: Option<String>,
    pub liability_type: Option<LiabilityType>,
    pub liability_amount: Option<f64>,
    pub liability_start_date: Option<String>,
    pub interest: Option<f32>,
    pub interest_period: Option<InterestPeriod>,
    pub notes: Option<String>,
}

Fields

created_at: Option<String>updated_at: Option<String>name: String_type: Type

Can only be one one these account types. import, initial-balance and reconciliation cannot be set manually.

iban: Option<String>bic: Option<String>account_number: Option<String>opening_balance: Option<f64>opening_balance_date: Option<String>virtual_balance: Option<f64>current_balance: Option<f64>current_balance_date: Option<String>currency_id: Option<i32>

Use either currency_id or currency_code. Defaults to the user's default currency.

currency_code: Option<String>

Use either currency_id or currency_code. Defaults to the user's default currency.

currency_symbol: Option<String>currency_decimal_places: Option<i32>active: Option<bool>

If omitted, defaults to true.

include_net_worth: Option<bool>

If omitted, defaults to true.

account_role: Option<AccountRole>

Is only mandatory when the type is asset.

credit_card_type: Option<CreditCardType>

Mandatory when the account_role is ccAsset. Can only be monthlyFull.

monthly_payment_date: Option<String>

Mandatory when the account_role is ccAsset. Moment at which CC payment installments are asked for by the bank.

liability_type: Option<LiabilityType>

Mandatory when type is liability. Specifies the exact type.

liability_amount: Option<f64>

Mandatory when type is liability. Amount of money in the liability. Must be positive.

liability_start_date: Option<String>

Mandatory when type is liability. Start date for the liability.

interest: Option<f32>

Mandatory when type is liability. Interest percentage.

interest_period: Option<InterestPeriod>

Mandatory when type is liability. Period over which the interest is calculated.

notes: Option<String>

Methods

impl Account[src]

pub fn new(name: String, _type: Type) -> Account[src]

Trait Implementations

impl Debug for Account[src]

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

impl PartialEq<Account> for Account[src]

impl Serialize for Account[src]

impl StructuralPartialEq for Account[src]

Auto Trait Implementations

impl RefUnwindSafe for Account

impl Send for Account

impl Sync for Account

impl Unpin for Account

impl UnwindSafe for Account

Blanket Implementations

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

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.