pub struct NetWorthReport {
pub groups: Vec<AccountTypeGroup>,
pub summary: NetWorthSummary,
pub include_archived: bool,
}Expand description
Net Worth Report
Fields§
§groups: Vec<AccountTypeGroup>Account groups by type
summary: NetWorthSummaryNet worth summary
include_archived: boolInclude archived accounts
Implementations§
Source§impl NetWorthReport
impl NetWorthReport
Sourcepub fn generate(
storage: &Storage,
include_archived: bool,
) -> EnvelopeResult<Self>
pub fn generate( storage: &Storage, include_archived: bool, ) -> EnvelopeResult<Self>
Generate a net worth report
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 account_count(&self) -> usize
pub fn account_count(&self) -> usize
Get total number of accounts
Trait Implementations§
Source§impl Clone for NetWorthReport
impl Clone for NetWorthReport
Source§fn clone(&self) -> NetWorthReport
fn clone(&self) -> NetWorthReport
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 NetWorthReport
impl RefUnwindSafe for NetWorthReport
impl Send for NetWorthReport
impl Sync for NetWorthReport
impl Unpin for NetWorthReport
impl UnwindSafe for NetWorthReport
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