pub enum RecomposeError {
UnknownFieldId {
collection_id: CollectionId,
field_id: FieldId,
},
Dictionary(DictionaryError),
Packed(PackedDocError),
InvalidUtf8 {
field_id: FieldId,
message: String,
},
InvalidStructuredPayload {
field_id: FieldId,
message: String,
},
PathConflict {
path: String,
},
}Expand description
Errors returned when reconstructing JSON from a packed document.
Variants§
UnknownFieldId
Registry does not know one of the field IDs in the packed payload.
Fields
§
collection_id: CollectionIdCollection that owns the field.
Dictionary(DictionaryError)
Dictionary operation failed.
Packed(PackedDocError)
Packed document read failed.
InvalidUtf8
Stored UTF-8 bytes are invalid.
InvalidStructuredPayload
Structured payload bytes are invalid JSON.
Fields
PathConflict
Field path conflicts with an existing scalar/object shape.
Trait Implementations§
Source§impl Debug for RecomposeError
impl Debug for RecomposeError
Source§impl Display for RecomposeError
impl Display for RecomposeError
Source§impl Error for RecomposeError
impl Error for RecomposeError
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<DictionaryError> for RecomposeError
impl From<DictionaryError> for RecomposeError
Source§fn from(source: DictionaryError) -> Self
fn from(source: DictionaryError) -> Self
Converts to this type from the input type.
Source§impl From<PackedDocError> for RecomposeError
impl From<PackedDocError> for RecomposeError
Source§fn from(source: PackedDocError) -> Self
fn from(source: PackedDocError) -> Self
Converts to this type from the input type.
Source§impl From<RecomposeError> for DocError
impl From<RecomposeError> for DocError
Source§fn from(source: RecomposeError) -> Self
fn from(source: RecomposeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RecomposeError
impl RefUnwindSafe for RecomposeError
impl Send for RecomposeError
impl Sync for RecomposeError
impl Unpin for RecomposeError
impl UnsafeUnpin for RecomposeError
impl UnwindSafe for RecomposeError
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