From 4c94e5f9101c14bfc5c6989d11ea6c855c809f0b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 14 Sep 2019 14:19:01 -0400 Subject: update openapi spec --- src/models/month_detail.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/models/month_detail.rs') 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, } 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) -> MonthDetail { MonthDetail { month: month, note: None, -- cgit v1.2.3-54-g00ecf