pub enum AnomalyCategory {
Show 15 variants
FictitiousVendor,
VendorKickback,
RelatedPartyVendor,
DuplicatePayment,
UnauthorizedTransaction,
StructuredTransaction,
CircularFlow,
BehavioralAnomaly,
TimingAnomaly,
JournalAnomaly,
ManualOverride,
MissingApproval,
StatisticalOutlier,
DistributionAnomaly,
Custom(String),
}Expand description
High-level anomaly category for multi-class classification.
These categories provide a more granular classification than the base AnomalyType enum, enabling better ML model training and audit reporting.
Variants§
FictitiousVendor
Fictitious or shell vendor.
VendorKickback
Kickback or collusion with vendor.
RelatedPartyVendor
Related party vendor transactions.
DuplicatePayment
Duplicate payment or invoice.
Unauthorized transaction.
StructuredTransaction
Structured transactions to avoid thresholds.
CircularFlow
Circular flow of funds.
BehavioralAnomaly
Behavioral anomaly (deviation from normal patterns).
TimingAnomaly
Timing-based anomaly.
JournalAnomaly
Manual journal entry anomaly.
ManualOverride
Manual override of controls.
MissingApproval
Missing approval in chain.
StatisticalOutlier
Statistical outlier.
DistributionAnomaly
Distribution anomaly (Benford, etc.).
Custom(String)
User-defined category.
Implementations§
Source§impl AnomalyCategory
impl AnomalyCategory
Sourcepub fn from_anomaly_type(anomaly_type: &AnomalyType) -> Self
pub fn from_anomaly_type(anomaly_type: &AnomalyType) -> Self
Derives an AnomalyCategory from an AnomalyType.
Sourcepub fn category_count() -> usize
pub fn category_count() -> usize
Returns the total number of categories (excluding Custom).
Trait Implementations§
Source§impl Clone for AnomalyCategory
impl Clone for AnomalyCategory
Source§fn clone(&self) -> AnomalyCategory
fn clone(&self) -> AnomalyCategory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AnomalyCategory
impl Debug for AnomalyCategory
Source§impl<'de> Deserialize<'de> for AnomalyCategory
impl<'de> Deserialize<'de> for AnomalyCategory
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Hash for AnomalyCategory
impl Hash for AnomalyCategory
Source§impl PartialEq for AnomalyCategory
impl PartialEq for AnomalyCategory
Source§impl Serialize for AnomalyCategory
impl Serialize for AnomalyCategory
impl Eq for AnomalyCategory
impl StructuralPartialEq for AnomalyCategory
Auto Trait Implementations§
impl Freeze for AnomalyCategory
impl RefUnwindSafe for AnomalyCategory
impl Send for AnomalyCategory
impl Sync for AnomalyCategory
impl Unpin for AnomalyCategory
impl UnwindSafe for AnomalyCategory
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
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
key and return true if they are equal.