plaid/model/
risk_check_identity_abuse_signals.rs

1use serde::{Serialize, Deserialize};
2use super::{RiskCheckStolenIdentity, RiskCheckSyntheticIdentity};
3///Result summary object capturing abuse signals related to `identity abuse`, e.g. stolen and synthetic identity fraud. These attributes are only available for US identities and some signals may not be available depending on what information was collected.
4#[derive(Debug, Clone, Serialize, Deserialize, Default)]
5pub struct RiskCheckIdentityAbuseSignals {
6    /**Field containing the data used in determining the outcome of the stolen identity risk check.
7
8Contains the following fields:
9
10`score` - A score from 0 to 100 indicating the likelihood that the user is a stolen identity.*/
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub stolen_identity: Option<RiskCheckStolenIdentity>,
13    /**Field containing the data used in determining the outcome of the synthetic identity risk check.
14
15Contains the following fields:
16
17`score` - A score from 0 to 100 indicating the likelihood that the user is a synthetic identity.*/
18    #[serde(default, skip_serializing_if = "Option::is_none")]
19    pub synthetic_identity: Option<RiskCheckSyntheticIdentity>,
20}
21impl std::fmt::Display for RiskCheckIdentityAbuseSignals {
22    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
23        write!(f, "{}", serde_json::to_string(self).unwrap())
24    }
25}