pub struct SanctionsResult {
pub screened_value: String,
pub is_match: bool,
pub matches: Vec<SanctionsMatch>,
pub screening_time: DateTime<Utc>,
pub lists_checked: Vec<SanctionsList>,
}Expand description
Sanctions screening result
Fields§
§screened_value: String§is_match: bool§matches: Vec<SanctionsMatch>§screening_time: DateTime<Utc>§lists_checked: Vec<SanctionsList>Implementations§
Source§impl SanctionsResult
impl SanctionsResult
Sourcepub fn has_high_confidence_match(&self) -> bool
pub fn has_high_confidence_match(&self) -> bool
Check if there are any high-confidence matches
Sourcepub fn highest_confidence(&self) -> Option<&SanctionsMatch>
pub fn highest_confidence(&self) -> Option<&SanctionsMatch>
Get highest confidence match
Sourcepub fn matches_above_threshold(&self, threshold: f32) -> Vec<&SanctionsMatch>
pub fn matches_above_threshold(&self, threshold: f32) -> Vec<&SanctionsMatch>
Get matches above threshold
Trait Implementations§
Source§impl Clone for SanctionsResult
impl Clone for SanctionsResult
Source§fn clone(&self) -> SanctionsResult
fn clone(&self) -> SanctionsResult
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 SanctionsResult
impl Debug for SanctionsResult
Source§impl<'de> Deserialize<'de> for SanctionsResult
impl<'de> Deserialize<'de> for SanctionsResult
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 SanctionsResult
impl RefUnwindSafe for SanctionsResult
impl Send for SanctionsResult
impl Sync for SanctionsResult
impl Unpin for SanctionsResult
impl UnwindSafe for SanctionsResult
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