pub struct PasswordOptions {
pub lowercase: bool,
pub uppercase: bool,
pub digits: bool,
pub special: bool,
pub length: usize,
}Expand description
Options for password generation
Fields§
§lowercase: boolInclude lowercase letters (a-z)
uppercase: boolInclude uppercase letters (A-Z)
digits: boolInclude digits (0-9)
special: boolInclude special symbols (!@#$%…)
length: usizePassword length
Trait Implementations§
Source§impl Clone for PasswordOptions
impl Clone for PasswordOptions
Source§fn clone(&self) -> PasswordOptions
fn clone(&self) -> PasswordOptions
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 PasswordOptions
impl Debug for PasswordOptions
Auto Trait Implementations§
impl Freeze for PasswordOptions
impl RefUnwindSafe for PasswordOptions
impl Send for PasswordOptions
impl Sync for PasswordOptions
impl Unpin for PasswordOptions
impl UnwindSafe for PasswordOptions
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