pub struct PasswordSpecification {
pub has_lowercase: bool,
pub has_uppercase: bool,
pub has_special: bool,
pub has_number: bool,
}
Expand description
Structure representing the specification of a password.
Fields§
§has_lowercase: bool
Whether the password contains lowercase characters.
has_uppercase: bool
Whether the password contains uppercase characters.
has_special: bool
Whether the password contains special characters.
has_number: bool
Whether the password contains numerical characters.
Auto Trait Implementations§
impl Freeze for PasswordSpecification
impl RefUnwindSafe for PasswordSpecification
impl Send for PasswordSpecification
impl Sync for PasswordSpecification
impl Unpin for PasswordSpecification
impl UnwindSafe for PasswordSpecification
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