pub struct TransactionBehavior {
pub monthly_tx_count: u32,
pub monthly_tx_std: f64,
pub avg_amount: f64,
pub amount_std: f64,
pub min_amount: f64,
pub max_amount: f64,
pub cash_percentage: f64,
pub international_percentage: f64,
pub active_hours: (u8, u8),
pub weekend_multiplier: f64,
}Expand description
Transaction behavior profile.
Fields§
§monthly_tx_count: u32Average transactions per month
monthly_tx_std: f64Standard deviation of monthly count
avg_amount: f64Average transaction amount
amount_std: f64Amount standard deviation
min_amount: f64Minimum transaction amount
max_amount: f64Maximum transaction amount
cash_percentage: f64Percentage of transactions that are cash
international_percentage: f64Percentage of transactions that are international
active_hours: (u8, u8)Typical transaction hours (start, end)
weekend_multiplier: f64Weekend activity multiplier
Trait Implementations§
Source§impl Clone for TransactionBehavior
impl Clone for TransactionBehavior
Source§fn clone(&self) -> TransactionBehavior
fn clone(&self) -> TransactionBehavior
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 TransactionBehavior
impl Debug for TransactionBehavior
Auto Trait Implementations§
impl Freeze for TransactionBehavior
impl RefUnwindSafe for TransactionBehavior
impl Send for TransactionBehavior
impl Sync for TransactionBehavior
impl Unpin for TransactionBehavior
impl UnwindSafe for TransactionBehavior
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