Enum argon2_creds::errors::CredsError
source · [−]pub enum CredsError {
ProfainityError,
UsernameCaseMappedError,
BlacklistError,
NotAnEmail,
PasswordTooShort,
PasswordTooLong,
Argon2Error(Error),
}
Expand description
Errors that can occur when processing credentials
Variants
ProfainityError
when the value passed contains profainity
UsernameCaseMappedError
when the value passed contains characters not present in UsernameCaseMapped profile
BlacklistError
when the value passed contains blacklisted words see blacklist
NotAnEmail
email validation error
PasswordTooShort
password too short
PasswordTooLong
password too long
Argon2Error(Error)
Errors from argon2
Trait Implementations
sourceimpl Clone for CredsError
impl Clone for CredsError
sourcefn clone(&self) -> CredsError
fn clone(&self) -> CredsError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CredsError
impl Debug for CredsError
sourceimpl Display for CredsError
impl Display for CredsError
sourceimpl Error for CredsError
impl Error for CredsError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Error> for CredsError
impl From<Error> for CredsError
sourcefn from(e: Error) -> CredsError
fn from(e: Error) -> CredsError
Performs the conversion.
sourceimpl From<ValidationErrors> for CredsError
impl From<ValidationErrors> for CredsError
sourcefn from(_: ValidationErrors) -> CredsError
fn from(_: ValidationErrors) -> CredsError
Performs the conversion.
sourceimpl PartialEq<CredsError> for CredsError
impl PartialEq<CredsError> for CredsError
sourcefn eq(&self, other: &CredsError) -> bool
fn eq(&self, other: &CredsError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CredsError) -> bool
fn ne(&self, other: &CredsError) -> bool
This method tests for !=
.
impl StructuralPartialEq for CredsError
Auto Trait Implementations
impl RefUnwindSafe for CredsError
impl Send for CredsError
impl Sync for CredsError
impl Unpin for CredsError
impl UnwindSafe for CredsError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more