Enum json_patch::PatchErrorKind
source · #[non_exhaustive]pub enum PatchErrorKind {
TestFailed,
InvalidFromPointer,
InvalidPointer,
CannotMoveInsideItself,
}
Expand description
This type represents all possible errors that can occur when applying JSON patch
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.
TestFailed
test
operation failed because values did not match.
InvalidFromPointer
from
JSON pointer in a move
or a copy
operation was incorrect.
InvalidPointer
path
JSON pointer is incorrect.
CannotMoveInsideItself
move
operation failed because target is inside the from
location.
Trait Implementations§
source§impl Debug for PatchErrorKind
impl Debug for PatchErrorKind
source§impl Display for PatchErrorKind
impl Display for PatchErrorKind
source§impl Error for PatchErrorKind
impl Error for PatchErrorKind
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PatchErrorKind
impl RefUnwindSafe for PatchErrorKind
impl Send for PatchErrorKind
impl Sync for PatchErrorKind
impl Unpin for PatchErrorKind
impl UnwindSafe for PatchErrorKind
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