pub enum ValueErrorKind {
TypeMismatch {
expected: &'static str,
got: ValueType,
},
MissingField {
field: &'static str,
},
UnknownField {
field: String,
},
NumberOutOfRange {
message: String,
},
Reflect(ReflectError),
Unsupported {
message: String,
},
}Expand description
Specific error kinds for Value deserialization.
Variants§
TypeMismatch
Type mismatch between Value and target type
Fields
MissingField
A required field is missing from the object
UnknownField
An unknown field was encountered (when deny_unknown_fields is set)
NumberOutOfRange
Number conversion failed (out of range)
Reflect(ReflectError)
Reflection error from facet-reflect
Unsupported
Unsupported type or feature
Trait Implementations§
Source§impl Debug for ValueErrorKind
impl Debug for ValueErrorKind
Auto Trait Implementations§
impl Freeze for ValueErrorKind
impl RefUnwindSafe for ValueErrorKind
impl Send for ValueErrorKind
impl Sync for ValueErrorKind
impl Unpin for ValueErrorKind
impl UnwindSafe for ValueErrorKind
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