pub enum JsonDeserializationErrorContext {
EntityAttribute {
uid: EntityUID,
attr: SmolStr,
},
EntityTag {
uid: EntityUID,
tag: SmolStr,
},
EntityParents {
uid: EntityUID,
},
EntityUid,
Context,
Policy {
id: PolicyID,
},
TemplateLink,
Unknown,
}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
EntityTag
The error occurred while deserializing the tag tag 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.
Policy
The error occurred while deserializing a policy in JSON (EST) form.
TemplateLink
The error occured while deserializing a template link
Unknown
The context was unknown, this shouldn’t surface to users
Trait Implementations§
Source§impl Clone for JsonDeserializationErrorContext
impl Clone for JsonDeserializationErrorContext
Source§fn clone(&self) -> JsonDeserializationErrorContext
fn clone(&self) -> JsonDeserializationErrorContext
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 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§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