pub struct GroupReportRow {
pub group_id: CategoryGroupId,
pub group_name: String,
pub categories: Vec<CategoryReportRow>,
pub total_budgeted: Money,
pub total_carryover: Money,
pub total_activity: Money,
pub total_available: Money,
}Expand description
A row in the budget report for a category group with totals
Fields§
§group_id: CategoryGroupIdGroup ID
group_name: StringGroup name
categories: Vec<CategoryReportRow>Categories in this group
total_budgeted: MoneyTotal budgeted for this group
total_carryover: MoneyTotal carryover for this group
total_activity: MoneyTotal activity for this group
total_available: MoneyTotal available for this group
Implementations§
Source§impl GroupReportRow
impl GroupReportRow
Sourcepub fn new(group_id: CategoryGroupId, group_name: String) -> Self
pub fn new(group_id: CategoryGroupId, group_name: String) -> Self
Create a new group row
Sourcepub fn add_category(&mut self, category: CategoryReportRow)
pub fn add_category(&mut self, category: CategoryReportRow)
Add a category to this group
Sourcepub fn has_overspent(&self) -> bool
pub fn has_overspent(&self) -> bool
Check if any category in this group is overspent
Trait Implementations§
Source§impl Clone for GroupReportRow
impl Clone for GroupReportRow
Source§fn clone(&self) -> GroupReportRow
fn clone(&self) -> GroupReportRow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GroupReportRow
impl RefUnwindSafe for GroupReportRow
impl Send for GroupReportRow
impl Sync for GroupReportRow
impl Unpin for GroupReportRow
impl UnwindSafe for GroupReportRow
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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