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§
Source§impl Clone for CredsError
impl Clone for CredsError
Source§fn clone(&self) -> CredsError
fn clone(&self) -> CredsError
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 CredsError
impl Debug for CredsError
Source§impl Display for CredsError
impl Display for CredsError
Source§impl Error for CredsError
impl Error for CredsError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for CredsError
impl From<Error> for CredsError
Source§fn from(e: Error) -> CredsError
fn from(e: Error) -> CredsError
Converts to this type from the input type.
Source§impl From<ValidationErrors> for CredsError
impl From<ValidationErrors> for CredsError
Source§fn from(_: ValidationErrors) -> CredsError
fn from(_: ValidationErrors) -> CredsError
Converts to this type from the input type.
Source§impl PartialEq for CredsError
impl PartialEq for CredsError
impl StructuralPartialEq for CredsError
Auto Trait Implementations§
impl Freeze for CredsError
impl RefUnwindSafe for CredsError
impl Send for CredsError
impl Sync for CredsError
impl Unpin for CredsError
impl UnwindSafe for CredsError
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