pub struct AccountAnalysisBuilder<TxCat: TransactionCategory> { /* private fields */ }Expand description
Builder for AccountAnalysis.
Implementations§
Source§impl<TxCat: TransactionCategory + Clone> AccountAnalysisBuilder<TxCat>
impl<TxCat: TransactionCategory + Clone> AccountAnalysisBuilder<TxCat>
pub fn flags(&mut self, value: AccountAnalysisFlags) -> &mut Self
pub fn histogram_display_strategy( &mut self, value: HistogramDisplayStrategy, ) -> &mut Self
pub fn year(&mut self, value: TrackedYear) -> &mut Self
pub fn accounts(&mut self, value: Vec<AccountKind>) -> &mut Self
pub fn donations(&mut self, value: Vec<Donation>) -> &mut Self
pub fn amazon_biz_items( &mut self, value: Option<Vec<AmazonStoreBusinessPurchase>>, ) -> &mut Self
pub fn amazon_med_items( &mut self, value: Option<Vec<AmazonStoreMedicalPurchase>>, ) -> &mut Self
pub fn category_map(&mut self, value: CategoryMap<TxCat>) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<AccountAnalysis<TxCat>, AccountAnalysisBuilderError>
pub fn build( &self, ) -> Result<AccountAnalysis<TxCat>, AccountAnalysisBuilderError>
Trait Implementations§
Source§impl<TxCat: Clone + TransactionCategory> Clone for AccountAnalysisBuilder<TxCat>
impl<TxCat: Clone + TransactionCategory> Clone for AccountAnalysisBuilder<TxCat>
Source§fn clone(&self) -> AccountAnalysisBuilder<TxCat>
fn clone(&self) -> AccountAnalysisBuilder<TxCat>
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 moreSource§impl<TxCat: TransactionCategory + Clone> Default for AccountAnalysisBuilder<TxCat>
impl<TxCat: TransactionCategory + Clone> Default for AccountAnalysisBuilder<TxCat>
Auto Trait Implementations§
impl<TxCat> Freeze for AccountAnalysisBuilder<TxCat>
impl<TxCat> RefUnwindSafe for AccountAnalysisBuilder<TxCat>where
TxCat: RefUnwindSafe,
impl<TxCat> Send for AccountAnalysisBuilder<TxCat>where
TxCat: Send,
impl<TxCat> Sync for AccountAnalysisBuilder<TxCat>where
TxCat: Sync,
impl<TxCat> Unpin for AccountAnalysisBuilder<TxCat>where
TxCat: Unpin,
impl<TxCat> UnwindSafe for AccountAnalysisBuilder<TxCat>where
TxCat: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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