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§
source§impl Clone for ParseOptionError
impl Clone for ParseOptionError
source§fn clone(&self) -> ParseOptionError
fn clone(&self) -> ParseOptionError
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 ParseOptionError
impl Debug for ParseOptionError
source§impl Display for ParseOptionError
impl Display for ParseOptionError
source§impl Error for ParseOptionError
impl Error for ParseOptionError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<ParseOptionError> for ParseOptionError
impl PartialEq<ParseOptionError> for ParseOptionError
source§fn eq(&self, other: &ParseOptionError) -> bool
fn eq(&self, other: &ParseOptionError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ParseOptionError
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§
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