From a942c7c8e17eb829ef1581c0b556665784f19e33 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 7 Nov 2019 03:57:33 -0500 Subject: update openapi spec and regenerate with newer openapi-generator the newer openapi-generator picks up fixes for optional parameters, among other things --- src/models/account.rs | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/models/account.rs') diff --git a/src/models/account.rs b/src/models/account.rs index 44ad808..c2581f0 100644 --- a/src/models/account.rs +++ b/src/models/account.rs @@ -10,6 +10,7 @@ + #[derive(Debug, PartialEq, Serialize, Deserialize)] pub struct Account { #[serde(rename = "id")] @@ -47,17 +48,17 @@ pub struct Account { impl Account { pub fn new(id: String, name: String, _type: Type, on_budget: bool, closed: bool, balance: i64, cleared_balance: i64, uncleared_balance: i64, transfer_payee_id: String, deleted: bool) -> Account { Account { - id: id, - name: name, - _type: _type, - on_budget: on_budget, - closed: closed, + id, + name, + _type, + on_budget, + closed, note: None, - balance: balance, - cleared_balance: cleared_balance, - uncleared_balance: uncleared_balance, - transfer_payee_id: transfer_payee_id, - deleted: deleted, + balance, + cleared_balance, + uncleared_balance, + transfer_payee_id, + deleted, } } } -- cgit v1.2.3-54-g00ecf