pub struct BudgetOverviewReport {
pub period: BudgetPeriod,
pub groups: Vec<GroupReportRow>,
pub grand_total_budgeted: Money,
pub grand_total_carryover: Money,
pub grand_total_activity: Money,
pub grand_total_available: Money,
pub available_to_budget: Money,
}Expand description
Budget Overview Report
Fields§
§period: BudgetPeriodThe budget period for this report
groups: Vec<GroupReportRow>Groups with their categories
grand_total_budgeted: MoneyGrand total budgeted
grand_total_carryover: MoneyGrand total carryover
grand_total_activity: MoneyGrand total activity
grand_total_available: MoneyGrand total available
available_to_budget: MoneyAvailable to Budget (funds not yet assigned)
Implementations§
Source§impl BudgetOverviewReport
impl BudgetOverviewReport
Sourcepub fn generate(
storage: &Storage,
period: &BudgetPeriod,
) -> EnvelopeResult<Self>
pub fn generate( storage: &Storage, period: &BudgetPeriod, ) -> EnvelopeResult<Self>
Generate a budget overview report for a period
Sourcepub fn format_terminal(&self) -> String
pub fn format_terminal(&self) -> String
Format the report for terminal display
Sourcepub fn export_csv<W: Write>(&self, writer: &mut W) -> EnvelopeResult<()>
pub fn export_csv<W: Write>(&self, writer: &mut W) -> EnvelopeResult<()>
Export the report to CSV format
Sourcepub fn overspent_count(&self) -> usize
pub fn overspent_count(&self) -> usize
Get count of overspent categories
Sourcepub fn overspent_categories(&self) -> Vec<&CategoryReportRow>
pub fn overspent_categories(&self) -> Vec<&CategoryReportRow>
Get list of overspent categories
Trait Implementations§
Source§impl Clone for BudgetOverviewReport
impl Clone for BudgetOverviewReport
Source§fn clone(&self) -> BudgetOverviewReport
fn clone(&self) -> BudgetOverviewReport
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 BudgetOverviewReport
impl RefUnwindSafe for BudgetOverviewReport
impl Send for BudgetOverviewReport
impl Sync for BudgetOverviewReport
impl Unpin for BudgetOverviewReport
impl UnwindSafe for BudgetOverviewReport
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