pub enum CanonicalError {
Number(String),
Json(String),
}Expand description
Why a value cannot be encoded canonically.
Variants§
Number(String)
A number that is not an integer between −(2^53 − 1) and 2^53 − 1.
Json(String)
The value cannot be represented as JSON, or the input is not JSON – including an object with two members of the same name.
Trait Implementations§
Source§impl Clone for CanonicalError
impl Clone for CanonicalError
Source§fn clone(&self) -> CanonicalError
fn clone(&self) -> CanonicalError
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 CanonicalError
impl Debug for CanonicalError
Source§impl Display for CanonicalError
impl Display for CanonicalError
impl Eq for CanonicalError
Source§impl Error for CanonicalError
impl Error for CanonicalError
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 From<CanonicalError> for ObjectError
impl From<CanonicalError> for ObjectError
Source§fn from(source: CanonicalError) -> Self
fn from(source: CanonicalError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CanonicalError
impl PartialEq for CanonicalError
impl StructuralPartialEq for CanonicalError
Auto Trait Implementations§
impl Freeze for CanonicalError
impl RefUnwindSafe for CanonicalError
impl Send for CanonicalError
impl Sync for CanonicalError
impl Unpin for CanonicalError
impl UnsafeUnpin for CanonicalError
impl UnwindSafe for CanonicalError
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