pub struct AccountLabel {
pub account_id: Uuid,
pub customer_id: Uuid,
pub is_funnel: bool,
pub is_mule_account: bool,
pub risk_weight: f64,
pub expected_tx_count: u32,
pub expected_avg_amount: f64,
pub case_id: Option<String>,
pub account_age_days: u32,
pub is_dormant: bool,
pub confidence: f64,
}Expand description
Account-level labels for ML training.
Fields§
§account_id: UuidAccount ID
customer_id: UuidOwner customer ID
is_funnel: boolIs funnel account?
is_mule_account: boolIs mule account?
risk_weight: f64Account risk weight
expected_tx_count: u32Expected transaction count per month
expected_avg_amount: f64Expected average transaction amount
case_id: Option<String>Associated case ID
account_age_days: u32Account age in days
is_dormant: boolIs dormant (no activity in 90+ days)?
confidence: f64Confidence score
Implementations§
Source§impl AccountLabel
impl AccountLabel
Sourcepub fn from_account(account: &BankAccount) -> Self
pub fn from_account(account: &BankAccount) -> Self
Create a new account label from an account.
Trait Implementations§
Source§impl Clone for AccountLabel
impl Clone for AccountLabel
Source§fn clone(&self) -> AccountLabel
fn clone(&self) -> AccountLabel
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 AccountLabel
impl Debug for AccountLabel
Source§impl<'de> Deserialize<'de> for AccountLabel
impl<'de> Deserialize<'de> for AccountLabel
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 AccountLabel
impl RefUnwindSafe for AccountLabel
impl Send for AccountLabel
impl Sync for AccountLabel
impl Unpin for AccountLabel
impl UnwindSafe for AccountLabel
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