pub enum CodeInputError {
Empty,
TooLongRaw,
WrongLength,
UnsupportedCharacters,
}Expand description
Rejection of user-supplied code input during validation (RFC-003 FR-2).
All variants map to the same generic public message; the distinction here exists only for internal diagnostics and metrics, never for user display (INV-8).
Variants§
Empty
Input was empty after trimming.
TooLongRaw
Raw input exceeded the maximum accepted length before normalization.
WrongLength
Normalized input length does not match the configured code length.
UnsupportedCharacters
Normalized input contains a character outside the accepted set.
Trait Implementations§
Source§impl Debug for CodeInputError
impl Debug for CodeInputError
Source§impl Display for CodeInputError
impl Display for CodeInputError
impl Eq for CodeInputError
Source§impl Error for CodeInputError
impl Error for CodeInputError
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 CodeInputError
impl PartialEq for CodeInputError
Source§fn eq(&self, other: &CodeInputError) -> bool
fn eq(&self, other: &CodeInputError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CodeInputError
Auto Trait Implementations§
impl Freeze for CodeInputError
impl RefUnwindSafe for CodeInputError
impl Send for CodeInputError
impl Sync for CodeInputError
impl Unpin for CodeInputError
impl UnsafeUnpin for CodeInputError
impl UnwindSafe for CodeInputError
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