pub enum Op {
Create(CreateOp),
Link(LinkOp),
Update(UpdateOp),
Delete(DeleteOp),
Restore(RestoreOp),
Merge(MergeOp),
}Expand description
One staged mutation, internally tagged by the snake-case op field.
See crates/khive-changeset/docs/api/create-and-link.md for wire examples.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Op
impl<'de> Deserialize<'de> for Op
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for Op
impl Freeze for Opwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, PropertyValue> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, PropertyValue)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<EntityAlias>: Freeze,
*const EntityRecord is !null: Freeze,
PhantomData<EntityRecord>: Freeze,
*const Note is !null: Freeze,
PhantomData<Note>: Freeze,
*const Link is !null: Freeze,
PhantomData<Link>: Freeze,
impl Move for Op
impl RefUnwindSafe for Op
impl Send for Opwhere
RawVecInner: Send,
NodeRef<Owned, String, PropertyValue, LeafOrInternal>: Send,
BoxRaw<(String, PropertyValue)>: Send,
BoxRaw<EntityRecord>: Send,
BoxRaw<Note>: Send,
BoxRaw<Link>: Send,
impl Sync for Opwhere
RawVecInner: Sync,
NodeRef<Owned, String, PropertyValue, LeafOrInternal>: Sync,
BoxRaw<(String, PropertyValue)>: Sync,
BoxRaw<EntityRecord>: Sync,
BoxRaw<Note>: Sync,
BoxRaw<Link>: Sync,
impl Unpin for Op
impl UnsafeUnpin for Opwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, PropertyValue> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, PropertyValue)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<EntityAlias>: UnsafeUnpin,
*const EntityRecord is !null: UnsafeUnpin,
PhantomData<EntityRecord>: UnsafeUnpin,
*const Note is !null: UnsafeUnpin,
PhantomData<Note>: UnsafeUnpin,
*const Link is !null: UnsafeUnpin,
PhantomData<Link>: UnsafeUnpin,
impl UnwindSafe for Opwhere
RawVecInner: UnwindSafe,
BTreeMap<String, PropertyValue>: UnwindSafe,
BoxRaw<EntityRecord>: UnwindSafe,
BoxRaw<Note>: UnwindSafe,
BoxRaw<Link>: 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