pub struct SpendingByGroup {
pub group_id: CategoryGroupId,
pub group_name: String,
pub categories: Vec<SpendingByCategory>,
pub total_spending: Money,
pub transaction_count: usize,
pub percentage: f64,
}Expand description
Spending by group summary
Fields§
§group_id: CategoryGroupIdGroup ID
group_name: StringGroup name
categories: Vec<SpendingByCategory>Categories in this group with spending
total_spending: MoneyTotal spending for this group
transaction_count: usizeTransaction count for this group
percentage: f64Percentage of total spending
Trait Implementations§
Source§impl Clone for SpendingByGroup
impl Clone for SpendingByGroup
Source§fn clone(&self) -> SpendingByGroup
fn clone(&self) -> SpendingByGroup
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 SpendingByGroup
impl RefUnwindSafe for SpendingByGroup
impl Send for SpendingByGroup
impl Sync for SpendingByGroup
impl Unpin for SpendingByGroup
impl UnwindSafe for SpendingByGroup
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