1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
use serde::{Serialize, Deserialize};
use super::MatchSummaryCode;
///Analysis information describing why a screening hit matched the provided user information
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ScreeningHitAnalysis {
/**An enum indicating the match type between data provided by user and data checked against an external data source.
`match` indicates that the provided input data was a strong match against external data.
`partial_match` indicates the data approximately matched against external data. For example, "Knope" vs. "Knope-Wyatt" for last name.
`no_match` indicates that Plaid was able to perform a check against an external data source and it did not match the provided input data.
`no_data` indicates that Plaid was unable to find external data to compare against the provided input data.
`no_input` indicates that Plaid was unable to perform a check because no information was provided for this field by the end user.*/
#[serde(default, skip_serializing_if = "Option::is_none")]
pub dates_of_birth: Option<MatchSummaryCode>,
/**An enum indicating the match type between data provided by user and data checked against an external data source.
`match` indicates that the provided input data was a strong match against external data.
`partial_match` indicates the data approximately matched against external data. For example, "Knope" vs. "Knope-Wyatt" for last name.
`no_match` indicates that Plaid was able to perform a check against an external data source and it did not match the provided input data.
`no_data` indicates that Plaid was unable to find external data to compare against the provided input data.
`no_input` indicates that Plaid was unable to perform a check because no information was provided for this field by the end user.*/
#[serde(default, skip_serializing_if = "Option::is_none")]
pub documents: Option<MatchSummaryCode>,
/**An enum indicating the match type between data provided by user and data checked against an external data source.
`match` indicates that the provided input data was a strong match against external data.
`partial_match` indicates the data approximately matched against external data. For example, "Knope" vs. "Knope-Wyatt" for last name.
`no_match` indicates that Plaid was able to perform a check against an external data source and it did not match the provided input data.
`no_data` indicates that Plaid was unable to find external data to compare against the provided input data.
`no_input` indicates that Plaid was unable to perform a check because no information was provided for this field by the end user.*/
#[serde(default, skip_serializing_if = "Option::is_none")]
pub locations: Option<MatchSummaryCode>,
/**An enum indicating the match type between data provided by user and data checked against an external data source.
`match` indicates that the provided input data was a strong match against external data.
`partial_match` indicates the data approximately matched against external data. For example, "Knope" vs. "Knope-Wyatt" for last name.
`no_match` indicates that Plaid was able to perform a check against an external data source and it did not match the provided input data.
`no_data` indicates that Plaid was unable to find external data to compare against the provided input data.
`no_input` indicates that Plaid was unable to perform a check because no information was provided for this field by the end user.*/
#[serde(default, skip_serializing_if = "Option::is_none")]
pub names: Option<MatchSummaryCode>,
///The version of the screening's `search_terms` that were compared when the screening hit was added. screening hits are immutable once they have been reviewed. If changes are detected due to updates to the screening's `search_terms`, the associated program, or the list's source data prior to review, the screening hit will be updated to reflect those changes.
pub search_terms_version: i64,
}
impl std::fmt::Display for ScreeningHitAnalysis {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "{}", serde_json::to_string(self).unwrap())
}
}