pub enum TransactionCategory {
Show 32 variants
Salary,
FreelanceIncome,
InvestmentIncome,
GovernmentBenefit,
Pension,
RentalIncome,
Refund,
TransferIn,
CashDeposit,
CheckDeposit,
Housing,
Utilities,
Telecommunications,
Insurance,
Groceries,
Dining,
Transportation,
Healthcare,
Education,
Entertainment,
Shopping,
Subscription,
TransferOut,
AtmWithdrawal,
LoanPayment,
CreditCardPayment,
Investment,
TaxPayment,
Charity,
InternationalTransfer,
P2PPayment,
Other,
}Expand description
Transaction category for behavioral analysis.
Variants§
Salary
Regular salary/wage deposit
FreelanceIncome
Freelance/contract income
InvestmentIncome
Investment income (dividends, interest)
GovernmentBenefit
Government benefits
Pension
Pension/retirement income
RentalIncome
Rental income
Refund
Refund/rebate
TransferIn
Transfer from own account
CashDeposit
Cash deposit
CheckDeposit
Check deposit
Housing
Housing (rent, mortgage)
Utilities
Utilities (electric, gas, water)
Telecommunications
Telecommunications (phone, internet)
Insurance
Insurance
Groceries
Groceries
Dining
Dining/restaurants
Transportation
Transportation (gas, public transit)
Healthcare
Healthcare
Education
Education
Entertainment
Entertainment
Shopping
Shopping (retail)
Subscription
Subscription services
TransferOut
Transfer to own account
AtmWithdrawal
ATM withdrawal
LoanPayment
Loan payment
CreditCardPayment
Credit card payment
Investment
Investment/trading
TaxPayment
Tax payment
Charity
Charitable donation
InternationalTransfer
International transfer
P2PPayment
Peer-to-peer payment
Other
Other/uncategorized
Implementations§
Source§impl TransactionCategory
impl TransactionCategory
Sourcepub fn risk_weight(&self) -> f64
pub fn risk_weight(&self) -> f64
Risk weight for AML scoring.
Sourcepub fn is_typically_recurring(&self) -> bool
pub fn is_typically_recurring(&self) -> bool
Whether this category is typically recurring.
Trait Implementations§
Source§impl Clone for TransactionCategory
impl Clone for TransactionCategory
Source§fn clone(&self) -> TransactionCategory
fn clone(&self) -> TransactionCategory
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 Debug for TransactionCategory
impl Debug for TransactionCategory
Source§impl<'de> Deserialize<'de> for TransactionCategory
impl<'de> Deserialize<'de> for TransactionCategory
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransactionCategory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransactionCategory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TransactionCategory
impl Hash for TransactionCategory
Source§impl PartialEq for TransactionCategory
impl PartialEq for TransactionCategory
Source§impl Serialize for TransactionCategory
impl Serialize for TransactionCategory
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for TransactionCategory
impl Eq for TransactionCategory
impl StructuralPartialEq for TransactionCategory
Auto Trait Implementations§
impl Freeze for TransactionCategory
impl RefUnwindSafe for TransactionCategory
impl Send for TransactionCategory
impl Sync for TransactionCategory
impl Unpin for TransactionCategory
impl UnwindSafe for TransactionCategory
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.