Struct ValueTypeError
pub struct ValueTypeError {
pub expected: Cow<'static, str>,
pub actual: Value,
}
Fields§
§expected: Cow<'static, str>
§actual: Value
Trait Implementations§
§impl Clone for ValueTypeError
impl Clone for ValueTypeError
§fn clone(&self) -> ValueTypeError
fn clone(&self) -> ValueTypeError
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 more§impl Debug for ValueTypeError
impl Debug for ValueTypeError
§impl Display for ValueTypeError
impl Display for ValueTypeError
§impl Error for ValueTypeError
impl Error for ValueTypeError
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()
Source§impl From<ValueTypeError> for Error
impl From<ValueTypeError> for Error
Source§fn from(v: ValueTypeError) -> Self
fn from(v: ValueTypeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValueTypeError
impl RefUnwindSafe for ValueTypeError
impl Send for ValueTypeError
impl Sync for ValueTypeError
impl Unpin for ValueTypeError
impl UnwindSafe for ValueTypeError
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