pub struct PasswordPolicy {
pub min_length: usize,
pub require_uppercase: bool,
pub require_lowercase: bool,
pub require_numbers: bool,
pub require_special: bool,
pub password_history: u32,
}Fields§
§min_length: usize§require_uppercase: bool§require_lowercase: bool§require_numbers: bool§require_special: bool§password_history: u32Trait Implementations§
Source§impl Clone for PasswordPolicy
impl Clone for PasswordPolicy
Source§fn clone(&self) -> PasswordPolicy
fn clone(&self) -> PasswordPolicy
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 moreAuto Trait Implementations§
impl Freeze for PasswordPolicy
impl RefUnwindSafe for PasswordPolicy
impl Send for PasswordPolicy
impl Sync for PasswordPolicy
impl Unpin for PasswordPolicy
impl UnwindSafe for PasswordPolicy
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