pub struct PolicyValidationResult {
pub is_valid: bool,
pub violations: Vec<PolicyViolation>,
pub strength: PasswordStrength,
pub suggestions: Vec<String>,
}Expand description
Result of password policy validation
Fields§
§is_valid: boolWhether the password passes the policy
violations: Vec<PolicyViolation>List of policy violations
strength: PasswordStrengthPassword strength
suggestions: Vec<String>Suggestions for improvement
Trait Implementations§
Source§impl Clone for PolicyValidationResult
impl Clone for PolicyValidationResult
Source§fn clone(&self) -> PolicyValidationResult
fn clone(&self) -> PolicyValidationResult
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 PolicyValidationResult
impl Debug for PolicyValidationResult
Source§impl<'de> Deserialize<'de> for PolicyValidationResult
impl<'de> Deserialize<'de> for PolicyValidationResult
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 PolicyValidationResult
impl RefUnwindSafe for PolicyValidationResult
impl Send for PolicyValidationResult
impl Sync for PolicyValidationResult
impl Unpin for PolicyValidationResult
impl UnwindSafe for PolicyValidationResult
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