aboutsummaryrefslogtreecommitdiffstats
path: root/src/models/account.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/account.rs')
-rw-r--r--src/models/account.rs21
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,
}
}
}