pub struct CustomerLabel {
pub customer_id: Uuid,
pub risk_tier: RiskTier,
pub expected_turnover: TurnoverBand,
pub bo_complexity: u8,
pub is_mule: bool,
pub sof_truthful: bool,
pub true_sof: Option<SourceOfFunds>,
pub declared_sof: SourceOfFunds,
pub kyc_completeness: f64,
pub type_risk_weight: f64,
pub case_ids: Vec<String>,
pub confidence: f64,
}Expand description
Customer-level labels for ML training.
Fields§
§customer_id: UuidCustomer ID
risk_tier: RiskTierRisk tier
expected_turnover: TurnoverBandExpected monthly turnover band
bo_complexity: u8Beneficial owner complexity score (1-10)
is_mule: boolIs known money mule?
sof_truthful: boolTrue vs declared source of funds match?
true_sof: Option<SourceOfFunds>True source of funds (if different from declared)
declared_sof: SourceOfFundsDeclared source of funds
kyc_completeness: f64KYC completeness score (0.0-1.0)
type_risk_weight: f64Customer type risk weight
case_ids: Vec<String>Associated case IDs
confidence: f64Confidence score for the label
Implementations§
Source§impl CustomerLabel
impl CustomerLabel
Sourcepub fn from_customer(customer: &BankingCustomer) -> Self
pub fn from_customer(customer: &BankingCustomer) -> Self
Create a new customer label from a customer.
Trait Implementations§
Source§impl Clone for CustomerLabel
impl Clone for CustomerLabel
Source§fn clone(&self) -> CustomerLabel
fn clone(&self) -> CustomerLabel
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 CustomerLabel
impl Debug for CustomerLabel
Source§impl<'de> Deserialize<'de> for CustomerLabel
impl<'de> Deserialize<'de> for CustomerLabel
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 CustomerLabel
impl RefUnwindSafe for CustomerLabel
impl Send for CustomerLabel
impl Sync for CustomerLabel
impl Unpin for CustomerLabel
impl UnwindSafe for CustomerLabel
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