aboutsummaryrefslogtreecommitdiffstats
path: root/ynab-api/src/models/budget_summary_response_data.rs
blob: f6bec05e8225d6f211fd057d0c263b78fed738d8 (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
/*
 * 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 BudgetSummaryResponseData {
    #[serde(rename = "budgets")]
    pub budgets: Vec<::models::BudgetSummary>,
    #[serde(rename = "default_budget", skip_serializing_if = "Option::is_none")]
    pub default_budget: Option<::models::BudgetSummary>,
}

impl BudgetSummaryResponseData {
    pub fn new(budgets: Vec<::models::BudgetSummary>) -> BudgetSummaryResponseData {
        BudgetSummaryResponseData {
            budgets: budgets,
            default_budget: None,
        }
    }
}