aboutsummaryrefslogtreecommitdiffstats
path: root/src/models/category_group_with_categories.rs
blob: 38cfd881fda266b4f9283a57126747fda0ccc25c (plain) (blame)
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
/*
 * YNAB API Endpoints
 *
 * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body.  API Documentation is at https://api.youneedabudget.com
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */


#[allow(unused_imports)]
use serde_json::Value;


#[derive(Debug, Serialize, Deserialize)]
pub struct CategoryGroupWithCategories {
    #[serde(rename = "id")]
    pub id: String,
    #[serde(rename = "name")]
    pub name: String,
    /// Whether or not the category group is hidden
    #[serde(rename = "hidden")]
    pub hidden: bool,
    /// Whether or not the category group has been deleted.  Deleted category groups will only be included in delta requests.
    #[serde(rename = "deleted")]
    pub deleted: bool,
    /// Category group categories.  Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
    #[serde(rename = "categories")]
    pub categories: Vec<::models::Category>,
}

impl CategoryGroupWithCategories {
    pub fn new(id: String, name: String, hidden: bool, deleted: bool, categories: Vec<::models::Category>) -> CategoryGroupWithCategories {
        CategoryGroupWithCategories {
            id: id,
            name: name,
            hidden: hidden,
            deleted: deleted,
            categories: categories,
        }
    }
}