pub struct TokenConversionError {
pub value: String,
pub target_type: &'static str,
}Expand description
Error when converting a token value to an incompatible type
Fields§
§value: String§target_type: &'static strTrait Implementations§
Source§impl Clone for TokenConversionError
impl Clone for TokenConversionError
Source§fn clone(&self) -> TokenConversionError
fn clone(&self) -> TokenConversionError
Returns a duplicate 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 TokenConversionError
impl Debug for TokenConversionError
Source§impl Display for TokenConversionError
impl Display for TokenConversionError
Source§impl Error for TokenConversionError
impl Error for TokenConversionError
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 TokenConversionError
impl RefUnwindSafe for TokenConversionError
impl Send for TokenConversionError
impl Sync for TokenConversionError
impl Unpin for TokenConversionError
impl UnwindSafe for TokenConversionError
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