Struct twilight_interactions::error::ParseError [−][src]
pub struct ParseError {
pub field: String,
pub kind: ParseErrorType,
}Expand description
Error when parsing a command option.
This error type is returned by the CommandModel::from_interaction method.
Fields
field: StringThe name of the option field that caused the error.
kind: ParseErrorTypeThe 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 ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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