pub enum NicknameError {
InvalidLength,
InvalidCharacters,
}Expand description
Errors that can occur when parsing or validating nicknames.
Variants§
InvalidLength
Nickname length is not between 1 and 19 characters.
InvalidCharacters
Nickname contains non-alphanumeric characters.
Trait Implementations§
Source§impl Debug for NicknameError
impl Debug for NicknameError
Source§impl Display for NicknameError
impl Display for NicknameError
Source§impl Error for NicknameError
impl Error for NicknameError
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()
Auto Trait Implementations§
impl Freeze for NicknameError
impl RefUnwindSafe for NicknameError
impl Send for NicknameError
impl Sync for NicknameError
impl Unpin for NicknameError
impl UnwindSafe for NicknameError
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