#[non_exhaustive]pub enum RecoveryRequestError {
Empty {
field: RecoveryField,
},
TooLong {
field: RecoveryField,
max_bytes: usize,
},
SurroundingWhitespace {
field: RecoveryField,
},
ControlCharacter {
field: RecoveryField,
},
}Expand description
Invalid bounded recovery request.
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.
Empty
A field was empty.
Fields
§
field: RecoveryFieldInvalid field.
TooLong
A field exceeded its UTF-8 byte bound.
SurroundingWhitespace
A field had surrounding whitespace.
Fields
§
field: RecoveryFieldInvalid field.
ControlCharacter
A field contained a control character.
Fields
§
field: RecoveryFieldInvalid field.
Trait Implementations§
Source§impl Clone for RecoveryRequestError
impl Clone for RecoveryRequestError
Source§fn clone(&self) -> RecoveryRequestError
fn clone(&self) -> RecoveryRequestError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RecoveryRequestError
impl Debug for RecoveryRequestError
Source§impl Display for RecoveryRequestError
impl Display for RecoveryRequestError
impl Eq for RecoveryRequestError
Source§impl Error for RecoveryRequestError
impl Error for RecoveryRequestError
1.30.0 · 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 PartialEq for RecoveryRequestError
impl PartialEq for RecoveryRequestError
impl StructuralPartialEq for RecoveryRequestError
Auto Trait Implementations§
impl Freeze for RecoveryRequestError
impl RefUnwindSafe for RecoveryRequestError
impl Send for RecoveryRequestError
impl Sync for RecoveryRequestError
impl Unpin for RecoveryRequestError
impl UnsafeUnpin for RecoveryRequestError
impl UnwindSafe for RecoveryRequestError
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