firefly_iii/models/
budget_spent.rs

1/*
2 * Firefly III API
3 *
4 * This is the official documentation of the Firefly III API. You can find accompanying documentation on the website of Firefly III itself (see below). Please report any bugs or issues. This version of the API is live from version v4.7.9 and onwards. You may use the \"Authorize\" button to try the API below. 
5 *
6 * The version of the OpenAPI document: 1.4.0
7 * Contact: james@firefly-iii.org
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12use serde::{Deserialize, Serialize};
13
14
15
16#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
17pub struct BudgetSpent {
18    /// The amount spent.
19    #[serde(rename = "sum", skip_serializing_if = "Option::is_none")]
20    pub sum: Option<String>,
21    #[serde(rename = "currency_id", skip_serializing_if = "Option::is_none")]
22    pub currency_id: Option<i32>,
23    #[serde(rename = "currency_code", skip_serializing_if = "Option::is_none")]
24    pub currency_code: Option<String>,
25    #[serde(rename = "currency_symbol", skip_serializing_if = "Option::is_none")]
26    pub currency_symbol: Option<String>,
27    /// Number of decimals supported by the currency
28    #[serde(rename = "currency_decimal_places", skip_serializing_if = "Option::is_none")]
29    pub currency_decimal_places: Option<i32>,
30}
31
32impl BudgetSpent {
33    pub fn new() -> BudgetSpent {
34        BudgetSpent {
35            sum: None,
36            currency_id: None,
37            currency_code: None,
38            currency_symbol: None,
39            currency_decimal_places: None,
40        }
41    }
42}
43
44