pub enum PasswordPolicyError {
TooShort {
got: usize,
want: usize,
},
Pwned {
occurrences: u64,
},
}Expand description
Reasons a password may be rejected at registration / change time.
Variants§
TooShort
Shorter than MIN_PASSWORD_LEN characters.
Pwned
Found in the HIBP Pwned Passwords corpus. Carries the count of times the password has appeared in a known breach so the frontend can surface a meaningful message (“seen 1.4M times”).
Trait Implementations§
Source§impl Clone for PasswordPolicyError
impl Clone for PasswordPolicyError
Source§fn clone(&self) -> PasswordPolicyError
fn clone(&self) -> PasswordPolicyError
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 PasswordPolicyError
impl Debug for PasswordPolicyError
Source§impl Display for PasswordPolicyError
impl Display for PasswordPolicyError
Source§impl PartialEq for PasswordPolicyError
impl PartialEq for PasswordPolicyError
impl Eq for PasswordPolicyError
impl StructuralPartialEq for PasswordPolicyError
Auto Trait Implementations§
impl Freeze for PasswordPolicyError
impl RefUnwindSafe for PasswordPolicyError
impl Send for PasswordPolicyError
impl Sync for PasswordPolicyError
impl Unpin for PasswordPolicyError
impl UnsafeUnpin for PasswordPolicyError
impl UnwindSafe for PasswordPolicyError
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