ynab_api/models/
save_category.rs

1/*
2 * YNAB API Endpoints
3 *
4 * 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.ynab.com
5 *
6 * The version of the OpenAPI document: 1.72.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SaveCategory {
16    #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub name: Option<Option<String>>,
18    #[serde(rename = "note", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub note: Option<Option<String>>,
20    #[serde(rename = "category_group_id", skip_serializing_if = "Option::is_none")]
21    pub category_group_id: Option<uuid::Uuid>,
22}
23
24impl SaveCategory {
25    pub fn new() -> SaveCategory {
26        SaveCategory {
27            name: None,
28            note: None,
29            category_group_id: None,
30        }
31    }
32}
33