pub enum ValueConversionError {
LossyNumber {
path: String,
lexical: String,
rendered: String,
},
UnrepresentableNumber {
path: String,
lexical: String,
},
}Expand description
Why a Value has no serde_json::Value form.
Variants§
LossyNumber
serde_json writes the number back in another form.
Fields
UnrepresentableNumber
serde_json holds no number of this magnitude.
Trait Implementations§
Source§impl Clone for ValueConversionError
impl Clone for ValueConversionError
Source§impl Debug for ValueConversionError
impl Debug for ValueConversionError
Source§impl Display for ValueConversionError
impl Display for ValueConversionError
impl Eq for ValueConversionError
Source§impl Error for ValueConversionError
impl Error for ValueConversionError
1.30.0 · 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 PartialEq for ValueConversionError
impl PartialEq for ValueConversionError
impl StructuralPartialEq for ValueConversionError
Auto Trait Implementations§
impl Freeze for ValueConversionError
impl RefUnwindSafe for ValueConversionError
impl Send for ValueConversionError
impl Sync for ValueConversionError
impl Unpin for ValueConversionError
impl UnsafeUnpin for ValueConversionError
impl UnwindSafe for ValueConversionError
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