pub struct TryFromArgumentValueError {
pub expected_type: CommandArgumentValueType,
pub actual_value: CommandArgumentValue,
}
Expand description
Failed to convert CommandArgumentValue
to the type expected.
Fields§
§expected_type: CommandArgumentValueType
The type expected.
actual_value: CommandArgumentValue
The actual value accepted.
Trait Implementations§
Source§impl Debug for TryFromArgumentValueError
impl Debug for TryFromArgumentValueError
Source§impl Display for TryFromArgumentValueError
impl Display for TryFromArgumentValueError
Source§impl Error for TryFromArgumentValueError
impl Error for TryFromArgumentValueError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for TryFromArgumentValueError
impl RefUnwindSafe for TryFromArgumentValueError
impl Send for TryFromArgumentValueError
impl Sync for TryFromArgumentValueError
impl Unpin for TryFromArgumentValueError
impl UnwindSafe for TryFromArgumentValueError
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