pub enum ParseOptionErrorType {
InvalidType(CommandOptionType),
InvalidChoice(String),
IntegerOutOfRange(i64),
NumberOutOfRange(f64),
StringLengthOutOfRange(String),
InvalidChannelType(ChannelType),
LookupFailed(u64),
RequiredField,
UnknownField,
UnknownSubcommand,
}Expand description
Type of ParseOptionError that occurred.
Variants§
InvalidType(CommandOptionType)
Received an invalid option type.
InvalidChoice(String)
Received an invalid value on choice option type.
IntegerOutOfRange(i64)
Received an out of range integer.
NumberOutOfRange(f64)
Received an out of range floating point number.
StringLengthOutOfRange(String)
Received an out of range string.
InvalidChannelType(ChannelType)
Received an invalid channel type.
LookupFailed(u64)
Failed to resolve data associated with an ID.
RequiredField
Missing a required option field.
UnknownField
Received an unknown option field.
UnknownSubcommand
Received an unknown subcommand.
Trait Implementations§
Source§impl Clone for ParseOptionErrorType
impl Clone for ParseOptionErrorType
Source§fn clone(&self) -> ParseOptionErrorType
fn clone(&self) -> ParseOptionErrorType
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 ParseOptionErrorType
impl Debug for ParseOptionErrorType
Source§impl PartialEq for ParseOptionErrorType
impl PartialEq for ParseOptionErrorType
impl StructuralPartialEq for ParseOptionErrorType
Auto Trait Implementations§
impl Freeze for ParseOptionErrorType
impl RefUnwindSafe for ParseOptionErrorType
impl Send for ParseOptionErrorType
impl Sync for ParseOptionErrorType
impl Unpin for ParseOptionErrorType
impl UnwindSafe for ParseOptionErrorType
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