Crate tktax

Crate tktax 

Source

Macros§

amazon_business
amazon_medical

Structs§

Account
AccountAnalysis
AccountAnalysisBuilder
Builder for AccountAnalysis.
AccountAnalysisFlags
AccountAnalysisHooks
this lets us parametrize how we create the items we use to run the program
AccountAnalysisHooksBuilder
Builder for AccountAnalysisHooks.
AccountSummary
AccountsConfig
AmazonConfig
if we provide this struct, we need all three fields.
AmazonItemListing
AmazonStoreBusinessPurchase
AmazonStoreBusinessPurchaseBuilder
Builder for AmazonStoreBusinessPurchase.
AmazonStoreMedicalPurchase
AmazonStoreMedicalPurchaseBuilder
Builder for AmazonStoreMedicalPurchase.
AmazonTx
AmazonTx1
this one is from the window 2009-2019
AmazonTx2
this one is from the window 2019-2023, after the first amazon account closing
AmazonTxBuilder
Builder for AmazonTx.
Budget
Represents a user’s budget plan for various categories and a given time period. Uses derive_builder to allow flexible instantiation.
BudgetBuilder
Builder for Budget.
BudgetComparison
Summarizes how actuals compare to a user’s budget for a category.
BudgetComparisonBuilder
Builder for BudgetComparison.
CategoryMap
Donation
DonationBuilder
this is a factory class we use to create our Donation objects in various ways.
DonationConfig
this is how we pass the configuration to our DonationBuilder
DonationConfigBuilder
Builder for DonationConfig.
DonationValueEstimate
DonationValueEstimateBuilder
Builder for DonationValueEstimate.
DonationsHooks
DonationsHooksBuilder
Builder for DonationsHooks.
GeneralConfig
IndexedAmazonTx
MockTransactionCategoryArray
Container to associate each enum variant with a datum.
MultiYearSummary
Aggregates data across multiple Accounts spanning different years. Could be extended to unify them in one cohesive summary.
ProgramConfig
QuarterlySummary
Summarizes totals over one calendar quarter.
For example, Q1 2023 or Q3 2024.
Tracks various transaction totals and counts across 3-month intervals.
StemmedToken
Transaction
TransactionBuilder
A builder for constructing Transaction instances with optional fields. By default, it creates a V1 transaction unless you call .version_v2().
TransactionCategoryPrediction
YearComparison
Stores differential data comparing two years.

Enums§

AccountAnalysisBuilderError
Error type for AccountAnalysisBuilder
AccountAnalysisHooksBuilderError
Error type for AccountAnalysisHooksBuilder
AccountCreationError
AccountError
AccountKind
AmazonError
AmazonStoreBusinessPurchaseBuilderError
Error type for AmazonStoreBusinessPurchaseBuilder
AmazonStoreMedicalPurchaseBuilderError
Error type for AmazonStoreMedicalPurchaseBuilder
AmazonTxBuilderError
Error type for AmazonTxBuilder
BudgetComparisonBuilderError
Error type for BudgetComparisonBuilder
BudgetError
Domain-specific error conditions for budgeting.
No stringly-typed errors or unwrap() usage here.
BudgetTimePeriod
Example budgeting time period enum.
BuilderVersion
Whether we produce a V1 or V2 transaction.
CategorizedTransactionsPrintFormat
DonationBuilderError
DonationConfigBuilderError
Error type for DonationConfigBuilder
DonationLocation
DonationSource
DonationType
DonationValueEstimateBuilderError
Error type for DonationValueEstimateBuilder
DonationValueEstimateFormatStrategy
DonationsHooksBuilderError
Error type for DonationsHooksBuilder
MockTransactionCategory
ParseCsvError
QuarterNumber
Enumerates which “quarter of year” a date belongs to.
QuarterlyError
TrackedYear
TransactionBuilderError
TransactionFileReadError
TransactionType

Constants§

DEFAULT_DONATION_VALUE_ESTIMATE_STRATEGY

Traits§

AccountAnalysisInterface
AccountInterface
AmazonTxn
Budgeting
Defines the methods needed to compare an Account against a Budget.
CategorizeTransaction
CreateQuarterlySummary
Defines an interface for creating quarterly summaries (grouped by quarter). If dates are invalid, returns a QuarterlyError.
DifferentialAnalysis
GetAccountSummary
GetAmazonStoreBusinessPurchaseCategory
GetAmazonStoreMedicalPurchaseCategory
GetBalanceAtDate
GetCategoryGoldenCsv
GetCheckOrSerialNumber
GetCheckTransactions
GetCreditTransactions
GetDebitTransactions
GetDepositTransactions
GetDescription
GetTotalChecks
GetTotalCredits
GetTotalDebits
GetTotalDeposits
GetTotalMonetaryAmount
GetTotalTransactionAmountWithinDates
GetTransactionAmount
GetTransactionDate
GetTransactionPostedDate
GetTransactionType
GetTransactionsByKeyword
GetTransactionsOfType
GetTransactionsOverPrice
GetTransactionsUnderPrice
GetTransactionsWithinDates
GetTransactionsWithinRange
MedicalAndInsuranceCategories
PureBusinessExpenditureCategories
ShowAccountBursts
ShowAccountSummary
ShowBusinessTransactions
ShowCategorizedDebug
ShowCategorizedShort
ShowCategoryMap
ShowHistogram
ShowMedicalAndInsuranceExpenditures
ShowMonthlySummary
ShowQuarterlySummary
ShowTreasuryTransactionsAndChecks
TransactionCategory
TransactionInterface
TreasuryAndChecksCategories
TryFromCsvContents
Unknown
YearToDate

Functions§

aggregate_multi_year
Summarizes multiple years or multiple Account instances.
analyze_amazon_line_items
analyze_donations
analyze_line_items_for_account
build_categorized_transaction_map
Builds the transaction-category map from self.txns() using the known category_map.
create_amazon_item_map
might return None if we have no way to create it due to missing items in ProgramConfig
estimate_donation_value
fuse_amazon_transactions_from_two_epochs
load_program_config_from_path
maybe_fuse_amazon_csv_from_two_epochs
whether this does anything depends what we have in our config.toml
mock_example_amazon_business_expenses
mock_example_amazon_med_expenses
mock_example_donations
parse_amazon_csv
post_summary
predict_category
print_donations
print_overall_monthly_aggregates
Prints all the final monthly aggregates, grouped by transaction type.
print_transaction_lines
process_single_category_block
Handles printing of a single category block and populates the average-monthly vectors.
start_of_quarter
Returns the first day of the quarter for a given date as Ok(NaiveDate), or returns Err(QuarterlyError) if constructing the date is out of range.
total_checks
total_credits
total_debits
total_point_of_sale
transaction_file_contents
write_to_csv

Type Aliases§

AmazonItemMap
AmazonResult
CreateAmazonBizExpensesFn
CreateAmazonItemMapFn
CreateAmazonMedExpensesFn
CreateCategoryMapFn
CreateDonationBuilderFn
CreateDonationsFn
CreateGoldenCategorizedTxnsFn
CreateProgramConfigFn