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 copy 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<ParseOptionErrorType> for ParseOptionErrorType
impl PartialEq<ParseOptionErrorType> for ParseOptionErrorType
source§fn eq(&self, other: &ParseOptionErrorType) -> bool
fn eq(&self, other: &ParseOptionErrorType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ParseOptionErrorType
Auto Trait Implementations§
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