pub enum JsonSerializationError {
Serde(Error),
ExtnCall0Arguments {
func: Name,
},
ExtnCall2OrMoreArguments {
func: Name,
},
ReservedKey {
key: SmolStr,
},
UnexpectedRestrictedExprKind {
kind: ExprKind,
},
}
Expand description
Errors thrown during serialization to JSON
Variants§
Serde(Error)
Error thrown by serde_json
ExtnCall0Arguments
Extension-function calls with 0 arguments are not currently supported in our JSON format.
ExtnCall2OrMoreArguments
Extension-function calls with 2 or more arguments are not currently supported in our JSON format.
ReservedKey
Encountered a Record
which can’t be serialized to JSON because it
contains a key which is reserved as a JSON escape.
UnexpectedRestrictedExprKind
Encountered an ExprKind
which we didn’t expect. Either a case is
missing in JSONValue::from_expr()
, or an internal invariant was
violated and there is a non-restricted expression in RestrictedExpr
Trait Implementations§
source§impl Debug for JsonSerializationError
impl Debug for JsonSerializationError
source§impl Display for JsonSerializationError
impl Display for JsonSerializationError
source§impl Error for JsonSerializationError
impl Error for JsonSerializationError
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<Error> for JsonSerializationError
impl From<Error> for JsonSerializationError
source§impl From<JsonSerializationError> for EntitiesError
impl From<JsonSerializationError> for EntitiesError
source§fn from(source: JsonSerializationError) -> Self
fn from(source: JsonSerializationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonSerializationError
impl !RefUnwindSafe for JsonSerializationError
impl Send for JsonSerializationError
impl Sync for JsonSerializationError
impl Unpin for JsonSerializationError
impl !UnwindSafe for JsonSerializationError
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> 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