pub struct Category {Show 15 fields
pub id: String,
pub category_group_id: String,
pub name: String,
pub hidden: bool,
pub original_category_group_id: Option<String>,
pub note: Option<String>,
pub budgeted: i64,
pub activity: i64,
pub balance: i64,
pub goal_type: Option<GoalType>,
pub goal_creation_month: Option<String>,
pub goal_target: Option<i64>,
pub goal_target_month: Option<String>,
pub goal_percentage_complete: Option<i32>,
pub deleted: bool,
}Fields§
§id: String§category_group_id: String§name: StringWhether or not the category is hidden
original_category_group_id: Option<String>If category is hidden this is the id of the category group it originally belonged to before it was hidden.
note: Option<String>§budgeted: i64Budgeted amount in milliunits format
activity: i64Activity amount in milliunits format
balance: i64Balance in milliunits format
goal_type: Option<GoalType>The type of goal, if the category has a goal (TB=Target Category Balance, TBD=Target Category Balance by Date, MF=Monthly Funding)
goal_creation_month: Option<String>The month a goal was created
goal_target: Option<i64>The goal target amount in milliunits
goal_target_month: Option<String>If the goal type is ‘TBD’ (Target Category Balance by Date), this is the target month for the goal to be completed
goal_percentage_complete: Option<i32>The percentage completion of the goal
deleted: boolWhether or not the category has been deleted. Deleted categories will only be included in delta requests.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Category
impl<'de> Deserialize<'de> for Category
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Category
Auto Trait Implementations§
impl Freeze for Category
impl RefUnwindSafe for Category
impl Send for Category
impl Sync for Category
impl Unpin for Category
impl UnwindSafe for Category
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more