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/category.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/models/category.rs') diff --git a/src/models/category.rs b/src/models/category.rs index 1a62c6a..6677f8d 100644 --- a/src/models/category.rs +++ b/src/models/category.rs @@ -9,11 +9,8 @@ */ -#[allow(unused_imports)] -use serde_json::Value; - -#[derive(Debug, Serialize, Deserialize)] +#[derive(Debug, PartialEq, Serialize, Deserialize)] pub struct Category { #[serde(rename = "id")] pub id: String, @@ -38,9 +35,9 @@ pub struct Category { /// Balance in milliunits format #[serde(rename = "balance")] pub balance: i64, - /// The type of goal, if the cagegory has a goal (TB=Target Category Balance, TBD=Target Category Balance by Date, MF=Monthly Funding) + /// The type of goal, if the category has a goal (TB=Target Category Balance, TBD=Target Category Balance by Date, MF=Monthly Funding) #[serde(rename = "goal_type", skip_serializing_if = "Option::is_none")] - pub goal_type: Option, + pub goal_type: Option, /// The month a goal was created #[serde(rename = "goal_creation_month", skip_serializing_if = "Option::is_none")] pub goal_creation_month: Option, @@ -80,8 +77,8 @@ impl Category { } } -/// The type of goal, if the cagegory has a goal (TB=Target Category Balance, TBD=Target Category Balance by Date, MF=Monthly Funding) -#[derive(Debug, Serialize, Deserialize)] +/// The type of goal, if the category has a goal (TB=Target Category Balance, TBD=Target Category Balance by Date, MF=Monthly Funding) +#[derive(Debug, PartialEq, Serialize, Deserialize)] pub enum GoalType { #[serde(rename = "TB")] TB, @@ -89,5 +86,7 @@ pub enum GoalType { TBD, #[serde(rename = "MF")] MF, + #[serde(rename = "NEED")] + NEED, } -- cgit v1.2.3-54-g00ecf