aboutsummaryrefslogtreecommitdiffstats
path: root/ynab-api/src/models/category_group_with_categories.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-08-09 02:06:22 -0400
committerJesse Luehrs <doy@tozt.net>2019-08-09 02:52:44 -0400
commitfaf9c8aa1e41df1889f8382e9c2183e2d5f85de1 (patch)
tree0e4218dd5c1d47735fd6324fb30a01c964aad781 /ynab-api/src/models/category_group_with_categories.rs
parentd54b8f01ea9c253a326a9601f58a423a64ba8b4a (diff)
downloadynab-api-faf9c8aa1e41df1889f8382e9c2183e2d5f85de1.tar.gz
ynab-api-faf9c8aa1e41df1889f8382e9c2183e2d5f85de1.zip
add openapi-generated api client
Diffstat (limited to 'ynab-api/src/models/category_group_with_categories.rs')
-rw-r--r--ynab-api/src/models/category_group_with_categories.rs45
1 files changed, 45 insertions, 0 deletions
diff --git a/ynab-api/src/models/category_group_with_categories.rs b/ynab-api/src/models/category_group_with_categories.rs
new file mode 100644
index 0000000..38cfd88
--- /dev/null
+++ b/ynab-api/src/models/category_group_with_categories.rs
@@ -0,0 +1,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,
+ }
+ }
+}
+
+