pub struct AMLChecker { /* private fields */ }Expand description
AML compliance checker
Implementations§
Source§impl AMLChecker
impl AMLChecker
Sourcepub fn check_compliance(&self, transaction: &Transaction) -> AMLResult
pub fn check_compliance(&self, transaction: &Transaction) -> AMLResult
Check transaction for AML compliance
Sourcepub fn add_sanctioned_entity(&mut self, entity: String)
pub fn add_sanctioned_entity(&mut self, entity: String)
Add sanctioned entity to list
Sourcepub fn check_sanctions_list(&self, entity: &str) -> bool
pub fn check_sanctions_list(&self, entity: &str) -> bool
Check if entity is on sanctions list
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AMLChecker
impl RefUnwindSafe for AMLChecker
impl Send for AMLChecker
impl Sync for AMLChecker
impl Unpin for AMLChecker
impl UnwindSafe for AMLChecker
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