#[non_exhaustive]pub enum ApplyErrorKind {
InvalidJsonPath(String),
ZeroMatch,
MixedKindMatch,
PrimitiveActionTarget,
CopySourceNotFound(String),
CopySourceMultiple(String),
ConflictingMergeSources,
}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.
InvalidJsonPath(String)
target is not a syntactically valid RFC 9535 JSONPath query.
ZeroMatch
No node matched and ApplyOptions::ErrorOnZeroMatch is set.
MixedKindMatch
Target matched nodes of mixed kinds and
ApplyOptions::ErrorOnMixedKindMatch is set.
PrimitiveActionTarget
target resolves to a primitive or null. The spec
§4.4
requires action targets to be objects or arrays, for both
update and remove actions.
CopySourceNotFound(String)
Overlay v1.1 only: the action’s copy JSONPath is
syntactically valid but matched no node in the working doc.
CopySourceMultiple(String)
Overlay v1.1 only: the action’s copy JSONPath matched more
than one node; the spec requires exactly one source.
ConflictingMergeSources
Overlay v1.1 only: the action set both update and copy,
which the spec treats as mutually exclusive. Validation flags
this; apply fails fast rather than silently dropping one.
Trait Implementations§
Source§impl Clone for ApplyErrorKind
impl Clone for ApplyErrorKind
Source§fn clone(&self) -> ApplyErrorKind
fn clone(&self) -> ApplyErrorKind
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 ApplyErrorKind
impl Debug for ApplyErrorKind
Source§impl Display for ApplyErrorKind
impl Display for ApplyErrorKind
Source§impl PartialEq for ApplyErrorKind
impl PartialEq for ApplyErrorKind
Source§fn eq(&self, other: &ApplyErrorKind) -> bool
fn eq(&self, other: &ApplyErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ApplyErrorKind
impl StructuralPartialEq for ApplyErrorKind
Auto Trait Implementations§
impl Freeze for ApplyErrorKind
impl RefUnwindSafe for ApplyErrorKind
impl Send for ApplyErrorKind
impl Sync for ApplyErrorKind
impl Unpin for ApplyErrorKind
impl UnsafeUnpin for ApplyErrorKind
impl UnwindSafe for ApplyErrorKind
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