pub enum JsonImportError {
PrimitiveRoot,
EncodeString {
field: String,
source: EncodeError,
},
EncodeNumber {
field: String,
source: EncodeError,
},
Syntax(String),
}Expand description
Error returned by JsonObjectImporter when importing a JSON document.
Variants§
PrimitiveRoot
The document root is a primitive (string, number, bool, null) — only objects and arrays of objects are accepted.
EncodeString
A string field could not be encoded into the target inline encoding.
EncodeNumber
A number field could not be encoded into the target inline encoding.
Syntax(String)
The JSON input is syntactically invalid.
Trait Implementations§
Source§impl Debug for JsonImportError
impl Debug for JsonImportError
Source§impl Display for JsonImportError
impl Display for JsonImportError
Source§impl Error for JsonImportError
impl Error for JsonImportError
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 !RefUnwindSafe for JsonImportError
impl !UnwindSafe for JsonImportError
impl Freeze for JsonImportError
impl Send for JsonImportError
impl Sync for JsonImportError
impl Unpin for JsonImportError
impl UnsafeUnpin for JsonImportError
Blanket Implementations§
impl<T> ArchiveOwner for T
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreSource§impl<S, T> IntoEncoded<S> for Twhere
S: Encodes<T>,
impl<S, T> IntoEncoded<S> for Twhere
S: Encodes<T>,
Source§fn into_encoded(self) -> <T as IntoEncoded<S>>::Output
fn into_encoded(self) -> <T as IntoEncoded<S>>::Output
Run the conversion.