pub struct PasswordOptions {
pub length: usize,
pub include_special_chars: bool,
pub include_uppercase: bool,
pub include_numbers: bool,
pub with_balancing: bool,
pub phrase: Option<String>,
}Expand description
Structure representing the options for password generation.
Fields§
§length: usizeLength of the password.
include_special_chars: boolWhether to include special characters in the password.
include_uppercase: boolWhether to include uppercase characters in the password.
include_numbers: boolWhether to include numerical characters in the password.
with_balancing: boolWhether to balance the password to ensure it meets strength criteria.
phrase: Option<String>Optional phrase to be included in the password.
Implementations§
Trait Implementations§
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