pub enum CharacterClass {
Upper,
Lower,
Digit,
Special,
AsciiPrintable,
Unicode,
Custom(Vec<char>),
}
Expand description
Character classes that the password can be allowed or required to use
Variants§
Upper
A-Z
Lower
a-z
Digit
0-9
Special
-~!@#$%^&*_+=`|(){}[:;“’<>,.? ] and space
AsciiPrintable
All ASCII printable characters
Unicode
All unicode characters
Custom(Vec<char>)
A custom list between [] of ascii characters that can be used in the password For example: [abc] consists of the characters a, b, and c
Implementations§
Trait Implementations§
Source§impl Clone for CharacterClass
impl Clone for CharacterClass
Source§fn clone(&self) -> CharacterClass
fn clone(&self) -> CharacterClass
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 CharacterClass
impl Debug for CharacterClass
Source§impl Ord for CharacterClass
impl Ord for CharacterClass
Source§fn cmp(&self, other: &CharacterClass) -> Ordering
fn cmp(&self, other: &CharacterClass) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CharacterClass
impl PartialEq for CharacterClass
Source§impl PartialOrd for CharacterClass
impl PartialOrd for CharacterClass
impl Eq for CharacterClass
impl StructuralPartialEq for CharacterClass
Auto Trait Implementations§
impl Freeze for CharacterClass
impl RefUnwindSafe for CharacterClass
impl Send for CharacterClass
impl Sync for CharacterClass
impl Unpin for CharacterClass
impl UnwindSafe for CharacterClass
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