Struct twilight_interactions::error::ParseOptionError
source · [−]pub struct ParseOptionError {
pub field: String,
pub kind: ParseOptionErrorType,
}Expand description
Error when parsing a command option.
This type is used by ParseError.
Fields
field: StringThe name of the option field that caused the error.
kind: ParseOptionErrorTypeThe type of the error.
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 ParseOptionError
impl Send for ParseOptionError
impl Sync for ParseOptionError
impl Unpin for ParseOptionError
impl UnwindSafe for ParseOptionError
Blanket Implementations
Mutably borrows from an owned value. Read more
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