#[non_exhaustive]pub enum ValueWireEncodeError {
NonFiniteFloat {
data_type: DataType,
},
BigDecimalScaleTooLarge {
scale: i64,
maximum_absolute_scale: i64,
},
ReservedJsonObjectKey {
key: &'static str,
},
}Expand description
A runtime value cannot be represented by the JSON V1 wire contract.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NonFiniteFloat
A JSON V1 float must be finite.
BigDecimalScaleTooLarge
A V1 decimal exponent must stay within the bounded wire range.
Fields
ReservedJsonObjectKey
A JSON V1 object uses serde_json’s private number marker key.
Trait Implementations§
Source§impl Clone for ValueWireEncodeError
impl Clone for ValueWireEncodeError
Source§fn clone(&self) -> ValueWireEncodeError
fn clone(&self) -> ValueWireEncodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValueWireEncodeError
impl Debug for ValueWireEncodeError
Source§impl Display for ValueWireEncodeError
impl Display for ValueWireEncodeError
impl Eq for ValueWireEncodeError
Source§impl Error for ValueWireEncodeError
impl Error for ValueWireEncodeError
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 ValueWireEncodeError
impl PartialEq for ValueWireEncodeError
impl StructuralPartialEq for ValueWireEncodeError
Auto Trait Implementations§
impl Freeze for ValueWireEncodeError
impl RefUnwindSafe for ValueWireEncodeError
impl Send for ValueWireEncodeError
impl Sync for ValueWireEncodeError
impl Unpin for ValueWireEncodeError
impl UnsafeUnpin for ValueWireEncodeError
impl UnwindSafe for ValueWireEncodeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoValueDefault<T> for T
impl<T> IntoValueDefault<T> for T
Source§fn into_value_default(self) -> T
fn into_value_default(self) -> T
Converts this argument into the default value. Read more