pub enum ValidationReason {
Empty,
IdentifierTooLong,
HostnameTooLong,
InvalidStartCharacter,
InvalidCharacters,
}Expand description
Shared validation reasons reused across public API errors.
Variants§
Empty
The provided value was empty.
IdentifierTooLong
The provided identifier exceeded the identifier length limit.
HostnameTooLong
The provided hostname exceeded the hostname length limit.
InvalidStartCharacter
The first character was not allowed.
InvalidCharacters
One or more characters were outside the allowed identifier charset.
Trait Implementations§
Source§impl Clone for ValidationReason
impl Clone for ValidationReason
Source§fn clone(&self) -> ValidationReason
fn clone(&self) -> ValidationReason
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 ValidationReason
impl Debug for ValidationReason
Source§impl Display for ValidationReason
impl Display for ValidationReason
Source§impl Error for ValidationReason
impl Error for ValidationReason
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 ValidationReason
impl PartialEq for ValidationReason
impl Copy for ValidationReason
impl Eq for ValidationReason
impl StructuralPartialEq for ValidationReason
Auto Trait Implementations§
impl Freeze for ValidationReason
impl RefUnwindSafe for ValidationReason
impl Send for ValidationReason
impl Sync for ValidationReason
impl Unpin for ValidationReason
impl UnsafeUnpin for ValidationReason
impl UnwindSafe for ValidationReason
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