pub enum FraudCategory {
AccountsReceivable,
AccountsPayable,
Payroll,
Expense,
Revenue,
Asset,
General,
}Expand description
Fraud category for cluster time window selection.
Variants§
AccountsReceivable
Accounts Receivable fraud (invoice aging: 30-45 days)
AccountsPayable
Accounts Payable fraud (payment cycles: 14-30 days)
Payroll
Payroll fraud (monthly: 28-35 days)
Expense
Expense fraud (submission cycles: 7-14 days)
Revenue
Revenue manipulation (quarterly: 85-95 days)
Asset
Asset fraud (periodic: 30-60 days)
General
General fraud (default: 7 days)
Implementations§
Source§impl FraudCategory
impl FraudCategory
Sourcepub fn time_window_days(&self) -> (i64, i64)
pub fn time_window_days(&self) -> (i64, i64)
Get the time window range (min, max days) for this fraud category.
Sourcepub fn from_anomaly_type(anomaly_type: &str) -> Self
pub fn from_anomaly_type(anomaly_type: &str) -> Self
Infer fraud category from anomaly type string.
Trait Implementations§
Source§impl Clone for FraudCategory
impl Clone for FraudCategory
Source§fn clone(&self) -> FraudCategory
fn clone(&self) -> FraudCategory
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 FraudCategory
impl Debug for FraudCategory
Source§impl Hash for FraudCategory
impl Hash for FraudCategory
Source§impl PartialEq for FraudCategory
impl PartialEq for FraudCategory
impl Copy for FraudCategory
impl Eq for FraudCategory
impl StructuralPartialEq for FraudCategory
Auto Trait Implementations§
impl Freeze for FraudCategory
impl RefUnwindSafe for FraudCategory
impl Send for FraudCategory
impl Sync for FraudCategory
impl Unpin for FraudCategory
impl UnwindSafe for FraudCategory
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.