pub struct PasswordStrength {
pub min_length: usize,
pub require_uppercase: bool,
pub require_lowercase: bool,
pub require_digit: bool,
pub require_special: bool,
}Expand description
Password strength requirements
Fields§
§min_length: usize§require_uppercase: bool§require_lowercase: bool§require_digit: bool§require_special: boolTrait Implementations§
Source§impl Clone for PasswordStrength
impl Clone for PasswordStrength
Source§fn clone(&self) -> PasswordStrength
fn clone(&self) -> PasswordStrength
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 PasswordStrength
impl Debug for PasswordStrength
Auto Trait Implementations§
impl Freeze for PasswordStrength
impl RefUnwindSafe for PasswordStrength
impl Send for PasswordStrength
impl Sync for PasswordStrength
impl Unpin for PasswordStrength
impl UnwindSafe for PasswordStrength
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