Enum password_hash::errors::InvalidValue [−][src]
#[non_exhaustive]
pub enum InvalidValue {
InvalidChar(char),
InvalidFormat,
Malformed,
TooLong,
TooShort,
}
Expand description
Parse errors relating to invalid parameter values or salts.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidChar(char)
Character is not in the allowed set.
Tuple Fields of InvalidChar
0: char
Format is invalid.
Value is malformed.
Value exceeds the maximum allowed length.
Value does not satisfy the minimum length.
Implementations
Create an Error::ParamValueInvalid
which warps this error.
Create an Error::SaltInvalid
which wraps this error.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for InvalidValue
impl Send for InvalidValue
impl Sync for InvalidValue
impl Unpin for InvalidValue
impl UnwindSafe for InvalidValue
Blanket Implementations
Mutably borrows from an owned value. Read more