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.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/models/month_detail.rs b/src/models/month_detail.rs
index a6f55d4..28b6d56 100644
--- a/src/models/month_detail.rs
+++ b/src/models/month_detail.rs
@@ -9,11 +9,8 @@
*/
-#[allow(unused_imports)]
-use serde_json::Value;
-
-#[derive(Debug, Serialize, Deserialize)]
+#[derive(Debug, PartialEq, Serialize, Deserialize)]
pub struct MonthDetail {
#[serde(rename = "month")]
pub month: String,
@@ -39,11 +36,11 @@ pub struct MonthDetail {
pub deleted: bool,
/// The budget month categories. Amounts (budgeted, activity, balance, etc.) are specific to the {month} parameter specified.
#[serde(rename = "categories")]
- pub categories: Vec<::models::Category>,
+ pub categories: Vec<crate::models::Category>,
}
impl MonthDetail {
- pub fn new(month: String, income: i64, budgeted: i64, activity: i64, to_be_budgeted: i64, deleted: bool, categories: Vec<::models::Category>) -> 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,
note: None,