ynab_api_async_fork/models/
budget_summary.rs1#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct BudgetSummary {
16 #[serde(rename = "id")]
17 pub id: String,
18 #[serde(rename = "name")]
19 pub name: String,
20 #[serde(rename = "last_modified_on", skip_serializing_if = "Option::is_none")]
22 pub last_modified_on: Option<String>,
23 #[serde(rename = "first_month", skip_serializing_if = "Option::is_none")]
25 pub first_month: Option<String>,
26 #[serde(rename = "last_month", skip_serializing_if = "Option::is_none")]
28 pub last_month: Option<String>,
29 #[serde(rename = "date_format", skip_serializing_if = "Option::is_none")]
30 pub date_format: Option<crate::models::DateFormat>,
31 #[serde(rename = "currency_format", skip_serializing_if = "Option::is_none")]
32 pub currency_format: Option<crate::models::CurrencyFormat>,
33 #[serde(rename = "accounts", skip_serializing_if = "Option::is_none")]
35 pub accounts: Option<Vec<crate::models::Account>>,
36}
37
38impl BudgetSummary {
39 pub fn new(id: String, name: String) -> BudgetSummary {
40 BudgetSummary {
41 id,
42 name,
43 last_modified_on: None,
44 first_month: None,
45 last_month: None,
46 date_format: None,
47 currency_format: None,
48 accounts: None,
49 }
50 }
51}
52
53