pub enum BotCommandError {
BadNameLen(usize),
BadDescriptionLen(usize),
}Expand description
Represents an error that can occur when creating a new BotCommand.
Variants§
BadNameLen(usize)
The provided name has an invalid length.
BadDescriptionLen(usize)
The provided description has an invalid length.
Trait Implementations§
Source§impl Debug for BotCommandError
impl Debug for BotCommandError
Source§impl Display for BotCommandError
impl Display for BotCommandError
Source§impl Error for BotCommandError
impl Error for BotCommandError
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 BotCommandError
impl RefUnwindSafe for BotCommandError
impl Send for BotCommandError
impl Sync for BotCommandError
impl Unpin for BotCommandError
impl UnsafeUnpin for BotCommandError
impl UnwindSafe for BotCommandError
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