[][src]Struct firefly_iii::models::piggy_bank::PiggyBank

pub struct PiggyBank {
    pub created_at: Option<String>,
    pub updated_at: Option<String>,
    pub name: String,
    pub account_id: i32,
    pub account_name: Option<String>,
    pub currency_id: Option<i32>,
    pub currency_code: Option<String>,
    pub currency_symbol: Option<String>,
    pub currency_decimal_places: Option<i32>,
    pub target_amount: f64,
    pub percentage: Option<f32>,
    pub current_amount: Option<f64>,
    pub left_to_save: Option<f64>,
    pub save_per_month: Option<f64>,
    pub start_date: Option<String>,
    pub target_date: Option<String>,
    pub order: Option<i32>,
    pub active: Option<bool>,
    pub notes: Option<String>,
}

Fields

created_at: Option<String>updated_at: Option<String>name: Stringaccount_id: i32

The ID of the asset account this piggy bank is connected to.

account_name: Option<String>

The name of the asset account this piggy bank is connected to.

currency_id: Option<i32>currency_code: Option<String>currency_symbol: Option<String>currency_decimal_places: Option<i32>

Number of decimals supported by the currency

target_amount: f64percentage: Option<f32>current_amount: Option<f64>left_to_save: Option<f64>save_per_month: Option<f64>start_date: Option<String>

The date you started with this piggy bank.

target_date: Option<String>

The date you intend to finish saving money.

order: Option<i32>active: Option<bool>notes: Option<String>

Methods

impl PiggyBank[src]

pub fn new(name: String, account_id: i32, target_amount: f64) -> PiggyBank[src]

Trait Implementations

impl Debug for PiggyBank[src]

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

impl PartialEq<PiggyBank> for PiggyBank[src]

impl Serialize for PiggyBank[src]

impl StructuralPartialEq for PiggyBank[src]

Auto Trait Implementations

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.