From faf9c8aa1e41df1889f8382e9c2183e2d5f85de1 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 9 Aug 2019 02:06:22 -0400 Subject: add openapi-generated api client --- ynab-api/src/models/date_format.rs | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 ynab-api/src/models/date_format.rs (limited to 'ynab-api/src/models/date_format.rs') diff --git a/ynab-api/src/models/date_format.rs b/ynab-api/src/models/date_format.rs new file mode 100644 index 0000000..cf88395 --- /dev/null +++ b/ynab-api/src/models/date_format.rs @@ -0,0 +1,32 @@ +/* + * 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 + */ + +/// DateFormat : The date format setting for the budget. In some cases the format will not be available and will be specified as null. + +#[allow(unused_imports)] +use serde_json::Value; + + +#[derive(Debug, Serialize, Deserialize)] +pub struct DateFormat { + #[serde(rename = "format")] + pub format: String, +} + +impl DateFormat { + /// The date format setting for the budget. In some cases the format will not be available and will be specified as null. + pub fn new(format: String) -> DateFormat { + DateFormat { + format: format, + } + } +} + + -- cgit v1.2.3-54-g00ecf