pub struct ValidatorConfig {
pub max_transaction_amount: f64,
pub min_transaction_amount: f64,
pub fraud_threshold: u8,
pub enable_duplicate_check: bool,
pub enable_aml_check: bool,
pub velocity_check_window_minutes: i64,
pub max_transactions_per_window: usize,
pub max_amount_per_window: f64,
}Expand description
Transaction validator configuration
Fields§
§max_transaction_amount: f64§min_transaction_amount: f64§fraud_threshold: u8§enable_duplicate_check: bool§enable_aml_check: bool§velocity_check_window_minutes: i64§max_transactions_per_window: usize§max_amount_per_window: f64Trait Implementations§
Source§impl Clone for ValidatorConfig
impl Clone for ValidatorConfig
Source§fn clone(&self) -> ValidatorConfig
fn clone(&self) -> ValidatorConfig
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 ValidatorConfig
impl Debug for ValidatorConfig
Auto Trait Implementations§
impl Freeze for ValidatorConfig
impl RefUnwindSafe for ValidatorConfig
impl Send for ValidatorConfig
impl Sync for ValidatorConfig
impl Unpin for ValidatorConfig
impl UnwindSafe for ValidatorConfig
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