diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-07 03:57:33 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-07 03:57:33 -0500 |
commit | a942c7c8e17eb829ef1581c0b556665784f19e33 (patch) | |
tree | ff391dc8d22860009bd06f77042cb74d6eb6c1f2 /src/models/account.rs | |
parent | 4c94e5f9101c14bfc5c6989d11ea6c855c809f0b (diff) | |
download | ynab-api-a942c7c8e17eb829ef1581c0b556665784f19e33.tar.gz ynab-api-a942c7c8e17eb829ef1581c0b556665784f19e33.zip |
update openapi spec and regenerate with newer openapi-generator
the newer openapi-generator picks up fixes for optional parameters,
among other things
Diffstat (limited to 'src/models/account.rs')
-rw-r--r-- | src/models/account.rs | 21 |
1 files changed, 11 insertions, 10 deletions
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, } } } |