#[non_exhaustive]pub enum EditOp {
ReplaceScalar {
path: Vec<PathSegment>,
value: Value,
},
RemoveEntry {
path: Vec<PathSegment>,
},
}Expand description
One edit operation for apply_batch / apply_batch_with.
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.
ReplaceScalar
Replace the scalar at path with value.
Fields
§
path: Vec<PathSegment>Path to the target scalar.
RemoveEntry
Remove the block entry at path.
Fields
§
path: Vec<PathSegment>Path to the target entry.
Trait Implementations§
impl Eq for EditOp
impl StructuralPartialEq for EditOp
Auto Trait Implementations§
impl Forget for EditOp
impl Freeze for EditOpwhere
*const u8 is !null: Freeze,
PhantomData<PathSegment>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const SmallSlice<[(Value, Value)]> is !null: Freeze,
PhantomData<SmallSlice<[(Value, Value)]>>: Freeze,
*const LargeMapping is !null: Freeze,
PhantomData<LargeMapping>: Freeze,
*const TaggedValue is !null: Freeze,
PhantomData<TaggedValue>: Freeze,
impl Move for EditOp
impl RefUnwindSafe for EditOp
impl Send for EditOp
impl Sync for EditOp
impl Unpin for EditOp
impl UnsafeUnpin for EditOpwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PathSegment>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const SmallSlice<[(Value, Value)]> is !null: UnsafeUnpin,
PhantomData<SmallSlice<[(Value, Value)]>>: UnsafeUnpin,
*const LargeMapping is !null: UnsafeUnpin,
PhantomData<LargeMapping>: UnsafeUnpin,
*const TaggedValue is !null: UnsafeUnpin,
PhantomData<TaggedValue>: UnsafeUnpin,
impl UnwindSafe for EditOpwhere
RawVecInner: UnwindSafe,
BoxRaw<SmallSlice<[(Value, Value)]>>: UnwindSafe,
BoxRaw<LargeMapping>: UnwindSafe,
BoxRaw<TaggedValue>: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.