1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#[derive(Debug, PartialEq, Serialize, Deserialize)]
pub struct BudgetSummary {
    #[serde(rename = "id")]
    pub id: String,
    #[serde(rename = "name")]
    pub name: String,
    
    #[serde(rename = "last_modified_on", skip_serializing_if = "Option::is_none")]
    pub last_modified_on: Option<String>,
    
    #[serde(rename = "first_month", skip_serializing_if = "Option::is_none")]
    pub first_month: Option<String>,
    
    #[serde(rename = "last_month", skip_serializing_if = "Option::is_none")]
    pub last_month: Option<String>,
    #[serde(rename = "date_format", skip_serializing_if = "Option::is_none")]
    pub date_format: Option<crate::models::DateFormat>,
    #[serde(rename = "currency_format", skip_serializing_if = "Option::is_none")]
    pub currency_format: Option<crate::models::CurrencyFormat>,
}
impl BudgetSummary {
    pub fn new(id: String, name: String) -> BudgetSummary {
        BudgetSummary {
            id: id,
            name: name,
            last_modified_on: None,
            first_month: None,
            last_month: None,
            date_format: None,
            currency_format: None,
        }
    }
}