pub enum JsonDigestError {
InvalidPathStart {
path: String,
},
UnclosedBracket {
path: String,
},
NonCompositeType,
Internal(String),
NonNormalizedInput,
Json(Error),
}Expand description
Errors that can occur during JSON digest operations.
Variants§
InvalidPathStart
A JSON path did not start with ..
UnclosedBracket
An unclosed bracket was found in a path.
NonCompositeType
A non-composite type was passed to a digest function that requires objects or arrays.
Internal(String)
An internal inconsistency in the digest implementation.
NonNormalizedInput
The input JSON string was not NFKD-normalized.
Json(Error)
JSON serialization/deserialization error.
Trait Implementations§
Source§impl Debug for JsonDigestError
impl Debug for JsonDigestError
Source§impl Display for JsonDigestError
impl Display for JsonDigestError
Source§impl Error for JsonDigestError
impl Error for JsonDigestError
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()
Auto Trait Implementations§
impl Freeze for JsonDigestError
impl RefUnwindSafe for JsonDigestError
impl Send for JsonDigestError
impl Sync for JsonDigestError
impl Unpin for JsonDigestError
impl UnsafeUnpin for JsonDigestError
impl UnwindSafe for JsonDigestError
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