Enum twilight_interactions::error::ParseErrorType [−][src]
pub enum ParseErrorType {
InvalidType(CommandOptionType),
LookupFailed(NonZeroU64),
RequiredField,
UnknownField,
}Expand description
Type of ParseError that occurred.
Variants
InvalidType(CommandOptionType)Found an invalid option type.
Tuple Fields of InvalidType
LookupFailed(NonZeroU64)Failed to resolve data associated with an ID.
Tuple Fields of LookupFailed
0: NonZeroU64Missing a required option field.
Received an unknown option field.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ParseErrorType
impl Send for ParseErrorType
impl Sync for ParseErrorType
impl Unpin for ParseErrorType
impl UnwindSafe for ParseErrorType
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more