pub enum CommandValidationError {
InvalidSessionPresence,
MessageMustBeUser,
InvalidText,
}Expand description
Error returned when validating command data.
Variants§
InvalidSessionPresence
Only create-session omits a session identifier.
MessageMustBeUser
Prompt and follow-up require canonical user messages.
InvalidText
Command text is empty, oversized, or contains a null character.
Trait Implementations§
Source§impl Clone for CommandValidationError
impl Clone for CommandValidationError
Source§fn clone(&self) -> CommandValidationError
fn clone(&self) -> CommandValidationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommandValidationError
Source§impl Debug for CommandValidationError
impl Debug for CommandValidationError
Source§impl Display for CommandValidationError
impl Display for CommandValidationError
impl Eq for CommandValidationError
Source§impl Error for CommandValidationError
impl Error for CommandValidationError
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 CommandValidationError
impl PartialEq for CommandValidationError
impl StructuralPartialEq for CommandValidationError
Auto Trait Implementations§
impl Freeze for CommandValidationError
impl RefUnwindSafe for CommandValidationError
impl Send for CommandValidationError
impl Sync for CommandValidationError
impl Unpin for CommandValidationError
impl UnsafeUnpin for CommandValidationError
impl UnwindSafe for CommandValidationError
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