pub enum RestrictKeyParseError {
Empty,
TooLong,
NotAlphanumeric,
}Expand description
Error parsing a restrict key.
Variants§
Empty
Key cannot be empty.
TooLong
Key exceeds maximum length.
NotAlphanumeric
Key contains non-alphanumeric bytes.
Implementations§
Trait Implementations§
Source§impl Clone for RestrictKeyParseError
impl Clone for RestrictKeyParseError
Source§fn clone(&self) -> RestrictKeyParseError
fn clone(&self) -> RestrictKeyParseError
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 RestrictKeyParseError
impl Debug for RestrictKeyParseError
Source§impl Display for RestrictKeyParseError
impl Display for RestrictKeyParseError
Source§impl Error for RestrictKeyParseError
impl Error for RestrictKeyParseError
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 RestrictKeyParseError
impl PartialEq for RestrictKeyParseError
impl Copy for RestrictKeyParseError
impl Eq for RestrictKeyParseError
impl StructuralPartialEq for RestrictKeyParseError
Auto Trait Implementations§
impl Freeze for RestrictKeyParseError
impl RefUnwindSafe for RestrictKeyParseError
impl Send for RestrictKeyParseError
impl Sync for RestrictKeyParseError
impl Unpin for RestrictKeyParseError
impl UnsafeUnpin for RestrictKeyParseError
impl UnwindSafe for RestrictKeyParseError
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