pub struct Category {Show 26 fields
pub id: Uuid,
pub category_group_id: Uuid,
pub category_group_name: Option<String>,
pub name: String,
pub hidden: bool,
pub original_category_group_id: Option<Uuid>,
pub note: Option<String>,
pub budgeted: i64,
pub activity: i64,
pub balance: i64,
pub goal_type: Option<GoalType>,
pub goal_needs_whole_amount: Option<bool>,
pub goal_day: Option<usize>,
pub goal_cadence: Option<usize>,
pub goal_cadence_frequency: Option<usize>,
pub goal_creation_month: Option<NaiveDate>,
pub goal_target: Option<i64>,
pub goal_target_date: Option<NaiveDate>,
pub goal_target_month: Option<NaiveDate>,
pub goal_percentage_complete: Option<usize>,
pub goal_months_to_budget: Option<usize>,
pub goal_under_funded: Option<i64>,
pub goal_overall_funded: Option<i64>,
pub goal_overall_left: Option<i64>,
pub goal_snoozed_at: Option<DateTime<Utc>>,
pub deleted: bool,
}Expand description
A budget category. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC) and are in milliunits (divide by 1000 for display).
Fields§
§id: Uuid§category_group_id: Uuid§category_group_name: Option<String>§name: String§original_category_group_id: Option<Uuid>§note: Option<String>§budgeted: i64§activity: i64§balance: i64§goal_type: Option<GoalType>§goal_needs_whole_amount: Option<bool>§goal_day: Option<usize>§goal_cadence: Option<usize>§goal_cadence_frequency: Option<usize>§goal_creation_month: Option<NaiveDate>§goal_target: Option<i64>§goal_target_date: Option<NaiveDate>§goal_target_month: Option<NaiveDate>§goal_percentage_complete: Option<usize>§goal_months_to_budget: Option<usize>§goal_under_funded: Option<i64>§goal_overall_funded: Option<i64>§goal_overall_left: Option<i64>§goal_snoozed_at: Option<DateTime<Utc>>§deleted: boolTrait 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
Auto Trait Implementations§
impl Freeze for Category
impl RefUnwindSafe for Category
impl Send for Category
impl Sync for Category
impl Unpin for Category
impl UnsafeUnpin 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