Struct fractal::utils::matrix::PasswordValidity
source · pub struct PasswordValidity {
pub has_lowercase: bool,
pub has_uppercase: bool,
pub has_number: bool,
pub has_symbol: bool,
pub has_length: bool,
pub progress: u32,
}
Expand description
The result of a password validation.
Fields§
§has_lowercase: bool
Whether the password includes at least one lowercase letter.
has_uppercase: bool
Whether the password includes at least one uppercase letter.
has_number: bool
Whether the password includes at least one number.
has_symbol: bool
Whether the password includes at least one symbol.
has_length: bool
Whether the password is at least 8 characters long.
progress: u32
The percentage of checks passed for the password, between 0 and 100.
If progress is 100, the password is valid.
Implementations§
Trait Implementations§
source§impl Clone for PasswordValidity
impl Clone for PasswordValidity
source§fn clone(&self) -> PasswordValidity
fn clone(&self) -> PasswordValidity
Returns a copy 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 PasswordValidity
impl Debug for PasswordValidity
source§impl Default for PasswordValidity
impl Default for PasswordValidity
source§fn default() -> PasswordValidity
fn default() -> PasswordValidity
Returns the “default value” for a type. Read more
impl Copy for PasswordValidity
Auto Trait Implementations§
impl Freeze for PasswordValidity
impl RefUnwindSafe for PasswordValidity
impl Send for PasswordValidity
impl Sync for PasswordValidity
impl Unpin for PasswordValidity
impl UnwindSafe for PasswordValidity
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.