pub struct TransactionLabel {
pub transaction_id: Uuid,
pub is_suspicious: bool,
pub suspicion_reason: Option<AmlTypology>,
pub laundering_stage: Option<LaunderingStage>,
pub case_id: Option<String>,
pub is_spoofed: bool,
pub spoofing_intensity: Option<f64>,
pub scenario_sequence: Option<u32>,
pub confidence: f64,
pub features: TransactionLabelFeatures,
}Expand description
Transaction-level labels for ML training.
Fields§
§transaction_id: UuidTransaction ID
is_suspicious: boolBinary suspicious flag
suspicion_reason: Option<AmlTypology>Specific suspicion reason
laundering_stage: Option<LaunderingStage>Money laundering stage
case_id: Option<String>Case ID for linking related transactions
is_spoofed: boolWhether transaction has been spoofed
spoofing_intensity: Option<f64>Spoofing intensity (0.0-1.0)
scenario_sequence: Option<u32>Sequence within scenario
confidence: f64Confidence score for the label (for soft labels)
features: TransactionLabelFeaturesAdditional feature flags
Implementations§
Source§impl TransactionLabel
impl TransactionLabel
Sourcepub fn from_transaction(txn: &BankTransaction) -> Self
pub fn from_transaction(txn: &BankTransaction) -> Self
Create a new transaction label from a transaction.
Trait Implementations§
Source§impl Clone for TransactionLabel
impl Clone for TransactionLabel
Source§fn clone(&self) -> TransactionLabel
fn clone(&self) -> TransactionLabel
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 TransactionLabel
impl Debug for TransactionLabel
Source§impl<'de> Deserialize<'de> for TransactionLabel
impl<'de> Deserialize<'de> for TransactionLabel
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TransactionLabel
impl RefUnwindSafe for TransactionLabel
impl Send for TransactionLabel
impl Sync for TransactionLabel
impl Unpin for TransactionLabel
impl UnwindSafe for TransactionLabel
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