pub struct JsonPointerTargetError {
pub expected: &'static str,
pub actual: &'static str,
}Expand description
An error returned when a JsonPointerTarget can’t extract a typed value
from a type-erased JsonPointee because the pointee’s type doesn’t match
the target type.
Fields§
§expected: &'static strThe expected type name, from std::any::type_name.
actual: &'static strThe actual type name, from JsonPointee::name.
Trait Implementations§
Source§impl Debug for JsonPointerTargetError
impl Debug for JsonPointerTargetError
Source§impl Display for JsonPointerTargetError
impl Display for JsonPointerTargetError
Source§impl Error for JsonPointerTargetError
impl Error for JsonPointerTargetError
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 JsonPointerTargetError
impl RefUnwindSafe for JsonPointerTargetError
impl Send for JsonPointerTargetError
impl Sync for JsonPointerTargetError
impl Unpin for JsonPointerTargetError
impl UnsafeUnpin for JsonPointerTargetError
impl UnwindSafe for JsonPointerTargetError
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