pub enum ApplyOptions {
ErrorOnZeroMatch,
ErrorOnMixedKindMatch,
}Expand description
Per-call apply toggles.
Variants§
ErrorOnZeroMatch
Treat a zero-match target JSONPath as an error rather than a
no-op. Default behavior (option absent) follows
§4.4:
“the action succeeds without changing the target document”.
ErrorOnMixedKindMatch
Reject update actions whose target selects nodes of mixed
kind (some objects, some arrays). The v1.1 spec calls this out
normatively; v1.0 doesn’t, so this option lets v1.0 callers
opt into the stricter check.
Trait Implementations§
Source§impl<O: Into<EnumSet<ApplyOptions>>> BitAnd<O> for ApplyOptions
impl<O: Into<EnumSet<ApplyOptions>>> BitAnd<O> for ApplyOptions
Source§impl<O: Into<EnumSet<ApplyOptions>>> BitOr<O> for ApplyOptions
impl<O: Into<EnumSet<ApplyOptions>>> BitOr<O> for ApplyOptions
Source§impl<O: Into<EnumSet<ApplyOptions>>> BitXor<O> for ApplyOptions
impl<O: Into<EnumSet<ApplyOptions>>> BitXor<O> for ApplyOptions
Source§impl Clone for ApplyOptions
impl Clone for ApplyOptions
Source§impl Debug for ApplyOptions
impl Debug for ApplyOptions
Source§impl EnumSetConstHelper for ApplyOptions
impl EnumSetConstHelper for ApplyOptions
Source§const CONST_INIT_HELPER: __EnumSetInitHelper = __EnumSetInitHelper
const CONST_INIT_HELPER: __EnumSetInitHelper = __EnumSetInitHelper
The instance of the
ConstInitHelper.Source§const CONST_OP_HELPER: __EnumSetOpHelper = __EnumSetOpHelper
const CONST_OP_HELPER: __EnumSetOpHelper = __EnumSetOpHelper
The instance of the
ConstOpHelper.Source§type ConstInitHelper = __EnumSetInitHelper
type ConstInitHelper = __EnumSetInitHelper
A helper type used to convert values to EnumSets at compile-time.
Source§type ConstOpHelper = __EnumSetOpHelper
type ConstOpHelper = __EnumSetOpHelper
A helper type used to implement compile-time operations on enums.
Source§impl EnumSetTypePrivate for ApplyOptions
impl EnumSetTypePrivate for ApplyOptions
Source§const VARIANT_COUNT: u32 = 2u32
const VARIANT_COUNT: u32 = 2u32
The number of variants in the bitset.
Source§fn enum_into_u32(self) -> u32
fn enum_into_u32(self) -> u32
Converts an enum of this type into its bit position.
Source§unsafe fn enum_from_u32(val: u32) -> Self
unsafe fn enum_from_u32(val: u32) -> Self
Converts a bit position into an enum value.
Source§unsafe fn enum_from_u32_checked(val: u32) -> Self
unsafe fn enum_from_u32_checked(val: u32) -> Self
Converts a bit position into an enum value, with a debug_assert.
Source§impl Not for ApplyOptions
impl Not for ApplyOptions
Source§impl PartialEq<EnumSet<ApplyOptions>> for ApplyOptions
impl PartialEq<EnumSet<ApplyOptions>> for ApplyOptions
Source§impl PartialEq for ApplyOptions
impl PartialEq for ApplyOptions
Source§impl<O: Into<EnumSet<ApplyOptions>>> Sub<O> for ApplyOptions
impl<O: Into<EnumSet<ApplyOptions>>> Sub<O> for ApplyOptions
impl Copy for ApplyOptions
impl EnumSetType for ApplyOptions
impl Eq for ApplyOptions
Auto Trait Implementations§
impl Freeze for ApplyOptions
impl RefUnwindSafe for ApplyOptions
impl Send for ApplyOptions
impl Sync for ApplyOptions
impl Unpin for ApplyOptions
impl UnsafeUnpin for ApplyOptions
impl UnwindSafe for ApplyOptions
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