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
The error occurred while deserializing the attribute attr
of an entity.
Fields
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 Freeze for JsonDeserializationErrorContext
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more