pub struct FraudRiskFactor {
pub factor_id: Uuid,
pub factor_type: FraudTriangleElement,
pub indicator: String,
pub score: u8,
pub trend: Trend,
pub source: String,
pub identified_date: NaiveDate,
}Expand description
Fraud risk factor per the fraud triangle.
Fields§
§factor_id: UuidFactor ID
factor_type: FraudTriangleElementElement of fraud triangle
indicator: StringSpecific indicator description
score: u8Risk score (0-100)
trend: TrendTrend direction
source: StringSource of information
identified_date: NaiveDateDate identified
Implementations§
Source§impl FraudRiskFactor
impl FraudRiskFactor
Sourcepub fn new(
factor_type: FraudTriangleElement,
indicator: &str,
score: u8,
source: &str,
) -> Self
pub fn new( factor_type: FraudTriangleElement, indicator: &str, score: u8, source: &str, ) -> Self
Create a new fraud risk factor.
Sourcepub fn with_trend(self, trend: Trend) -> Self
pub fn with_trend(self, trend: Trend) -> Self
Set the trend.
Trait Implementations§
Source§impl Clone for FraudRiskFactor
impl Clone for FraudRiskFactor
Source§fn clone(&self) -> FraudRiskFactor
fn clone(&self) -> FraudRiskFactor
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 FraudRiskFactor
impl Debug for FraudRiskFactor
Source§impl<'de> Deserialize<'de> for FraudRiskFactor
impl<'de> Deserialize<'de> for FraudRiskFactor
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 FraudRiskFactor
impl RefUnwindSafe for FraudRiskFactor
impl Send for FraudRiskFactor
impl Sync for FraudRiskFactor
impl Unpin for FraudRiskFactor
impl UnwindSafe for FraudRiskFactor
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