pub struct RiskConfig {
pub enabled: bool,
pub mfa_threshold: u8,
pub block_threshold: u8,
pub anomaly_detection: bool,
pub geo_velocity_check: bool,
pub max_travel_speed: f64,
}Fields§
§enabled: boolEnable risk-based authentication
mfa_threshold: u8Threshold for requiring MFA
block_threshold: u8Threshold for blocking
anomaly_detection: boolEnable anomaly detection
geo_velocity_check: boolEnable geo-velocity check
max_travel_speed: f64Maximum travel speed (km/h)
Trait Implementations§
Source§impl Clone for RiskConfig
impl Clone for RiskConfig
Source§fn clone(&self) -> RiskConfig
fn clone(&self) -> RiskConfig
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 RiskConfig
impl Debug for RiskConfig
Source§impl Default for RiskConfig
impl Default for RiskConfig
Source§impl<'de> Deserialize<'de> for RiskConfig
impl<'de> Deserialize<'de> for RiskConfig
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 RiskConfig
impl RefUnwindSafe for RiskConfig
impl Send for RiskConfig
impl Sync for RiskConfig
impl Unpin for RiskConfig
impl UnwindSafe for RiskConfig
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