aboutsummaryrefslogtreecommitdiffstats
path: root/src/models/month_detail.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/month_detail.rs')
-rw-r--r--src/models/month_detail.rs15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/models/month_detail.rs b/src/models/month_detail.rs
index 28b6d56..32b6f9e 100644
--- a/src/models/month_detail.rs
+++ b/src/models/month_detail.rs
@@ -10,6 +10,7 @@
+
#[derive(Debug, PartialEq, Serialize, Deserialize)]
pub struct MonthDetail {
#[serde(rename = "month")]
@@ -42,15 +43,15 @@ pub struct MonthDetail {
impl MonthDetail {
pub fn new(month: String, income: i64, budgeted: i64, activity: i64, to_be_budgeted: i64, deleted: bool, categories: Vec<crate::models::Category>) -> MonthDetail {
MonthDetail {
- month: month,
+ month,
note: None,
- income: income,
- budgeted: budgeted,
- activity: activity,
- to_be_budgeted: to_be_budgeted,
+ income,
+ budgeted,
+ activity,
+ to_be_budgeted,
age_of_money: None,
- deleted: deleted,
- categories: categories,
+ deleted,
+ categories,
}
}
}