pub enum OperationRiskLevel {
Low = 1,
Medium = 2,
High = 3,
Critical = 4,
}Expand description
Operation risk level determining required factor strength
Variants§
Low = 1
Low risk: Read operations, profile viewing
Medium = 2
Medium risk: Profile updates, non-critical changes
High = 3
High risk: Financial transactions, sensitive data access
Critical = 4
Critical: Admin operations, security changes, deletions
Implementations§
Source§impl OperationRiskLevel
impl OperationRiskLevel
Sourcepub fn min_strength_score(&self) -> u8
pub fn min_strength_score(&self) -> u8
Get minimum factor strength score required
Sourcepub fn requires_phishing_resistant(&self) -> bool
pub fn requires_phishing_resistant(&self) -> bool
Check if phishing-resistant factor is required
Sourcepub fn min_nist_aal(&self) -> u8
pub fn min_nist_aal(&self) -> u8
Get minimum NIST AAL required
Trait Implementations§
Source§impl Clone for OperationRiskLevel
impl Clone for OperationRiskLevel
Source§fn clone(&self) -> OperationRiskLevel
fn clone(&self) -> OperationRiskLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OperationRiskLevel
Source§impl Debug for OperationRiskLevel
impl Debug for OperationRiskLevel
Source§impl<'de> Deserialize<'de> for OperationRiskLevel
impl<'de> Deserialize<'de> for OperationRiskLevel
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
impl Eq for OperationRiskLevel
Source§impl Hash for OperationRiskLevel
impl Hash for OperationRiskLevel
Source§impl Ord for OperationRiskLevel
impl Ord for OperationRiskLevel
Source§fn cmp(&self, other: &OperationRiskLevel) -> Ordering
fn cmp(&self, other: &OperationRiskLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OperationRiskLevel
impl PartialEq for OperationRiskLevel
Source§fn eq(&self, other: &OperationRiskLevel) -> bool
fn eq(&self, other: &OperationRiskLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OperationRiskLevel
impl PartialOrd for OperationRiskLevel
Source§impl Serialize for OperationRiskLevel
impl Serialize for OperationRiskLevel
impl StructuralPartialEq for OperationRiskLevel
Auto Trait Implementations§
impl Freeze for OperationRiskLevel
impl RefUnwindSafe for OperationRiskLevel
impl Send for OperationRiskLevel
impl Sync for OperationRiskLevel
impl Unpin for OperationRiskLevel
impl UnsafeUnpin for OperationRiskLevel
impl UnwindSafe for OperationRiskLevel
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