pub struct CollusionFactors {
pub participants: u32,
pub management_involved: bool,
pub it_involved: bool,
pub external_party_involved: bool,
}Expand description
Factors related to collusion in fraud.
Fields§
§participants: u32Number of people involved in collusion.
management_involved: boolManagement level involvement.
it_involved: boolIT/system admin involvement.
external_party_involved: boolExternal party involvement.
Implementations§
Source§impl CollusionFactors
impl CollusionFactors
Sourcepub fn with_participants(self, count: u32) -> Self
pub fn with_participants(self, count: u32) -> Self
Sets number of participants.
Sourcepub fn with_management(self) -> Self
pub fn with_management(self) -> Self
Sets management involvement.
Sourcepub fn with_external_party(self) -> Self
pub fn with_external_party(self) -> Self
Sets external party involvement.
Sourcepub fn difficulty_contribution(&self) -> f64
pub fn difficulty_contribution(&self) -> f64
Calculates the total difficulty contribution from collusion.
Trait Implementations§
Source§impl Clone for CollusionFactors
impl Clone for CollusionFactors
Source§fn clone(&self) -> CollusionFactors
fn clone(&self) -> CollusionFactors
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 CollusionFactors
impl Debug for CollusionFactors
Source§impl Default for CollusionFactors
impl Default for CollusionFactors
Source§fn default() -> CollusionFactors
fn default() -> CollusionFactors
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CollusionFactors
impl<'de> Deserialize<'de> for CollusionFactors
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 CollusionFactors
impl RefUnwindSafe for CollusionFactors
impl Send for CollusionFactors
impl Sync for CollusionFactors
impl Unpin for CollusionFactors
impl UnwindSafe for CollusionFactors
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