pub enum JsonDeserializationErrorContext {
EntityAttribute {
uid: EntityUID,
attr: SmolStr,
},
EntityParents {
uid: EntityUID,
},
EntityUid,
Context,
}
Expand description
Gives information about the context of a JSON deserialization error (e.g., where we were in the JSON document).
Variants§
EntityAttribute
Fields
The error occurred while deserializing the attribute attr
of an entity.
EntityParents
The error occurred while deserializing the parents
field of an entity.
EntityUid
The error occurred while deserializing the uid
field of an entity.
Context
The error occurred while deserializing the Context
.
Trait Implementations§
source§impl Clone for JsonDeserializationErrorContext
impl Clone for JsonDeserializationErrorContext
source§fn clone(&self) -> JsonDeserializationErrorContext
fn clone(&self) -> JsonDeserializationErrorContext
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 moreAuto Trait Implementations§
impl RefUnwindSafe for JsonDeserializationErrorContext
impl Send for JsonDeserializationErrorContext
impl Sync for JsonDeserializationErrorContext
impl Unpin for JsonDeserializationErrorContext
impl UnwindSafe for JsonDeserializationErrorContext
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