pub enum DecomposeError {
RootMustBeObject,
InvalidFieldName {
field_name: String,
path: String,
},
UnsupportedNumber(String),
Registry(RegistryError),
Dictionary(DictionaryError),
Packed(PackedDocError),
StructuredValueEncode {
path: String,
message: String,
},
}Expand description
Errors returned when decomposing JSON into a packed document.
Variants§
RootMustBeObject
Root documents must be JSON objects.
InvalidFieldName
Field names cannot be empty or contain reserved separator characters.
UnsupportedNumber(String)
Numbers that cannot be represented in packed format are rejected.
Registry(RegistryError)
Registry operation failed.
Dictionary(DictionaryError)
Dictionary operation failed.
Packed(PackedDocError)
Packed document encoding failed.
StructuredValueEncode
Structured value payload serialization failed.
Trait Implementations§
Source§impl Debug for DecomposeError
impl Debug for DecomposeError
Source§impl Display for DecomposeError
impl Display for DecomposeError
Source§impl Error for DecomposeError
impl Error for DecomposeError
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<DecomposeError> for DocError
impl From<DecomposeError> for DocError
Source§fn from(source: DecomposeError) -> Self
fn from(source: DecomposeError) -> Self
Converts to this type from the input type.
Source§impl From<DictionaryError> for DecomposeError
impl From<DictionaryError> for DecomposeError
Source§fn from(source: DictionaryError) -> Self
fn from(source: DictionaryError) -> Self
Converts to this type from the input type.
Source§impl From<PackedDocError> for DecomposeError
impl From<PackedDocError> for DecomposeError
Source§fn from(source: PackedDocError) -> Self
fn from(source: PackedDocError) -> Self
Converts to this type from the input type.
Source§impl From<RegistryError> for DecomposeError
impl From<RegistryError> for DecomposeError
Source§fn from(source: RegistryError) -> Self
fn from(source: RegistryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DecomposeError
impl RefUnwindSafe for DecomposeError
impl Send for DecomposeError
impl Sync for DecomposeError
impl Unpin for DecomposeError
impl UnsafeUnpin for DecomposeError
impl UnwindSafe for DecomposeError
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