pub struct MergeOp {
pub into_id: Id128,
pub from_id: Id128,
pub preimage: MergePreimage,
}Expand description
Merges two entities with required participant and incident-edge preimages.
Deserialization matches both IDs and requires every incident edge to touch
at least one participant.
See crates/khive-changeset/docs/api/delete-and-merge.md for the full contract.
Fields§
§into_id: Id128§from_id: Id128§preimage: MergePreimageTrait Implementations§
Source§impl<'de> Deserialize<'de> for MergeOp
impl<'de> Deserialize<'de> for MergeOp
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 MergeOp
impl Freeze for MergeOpwhere
*const EntityRecord is !null: Freeze,
PhantomData<EntityRecord>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Link>: Freeze,
impl Move for MergeOp
impl RefUnwindSafe for MergeOp
impl Send for MergeOpwhere
BoxRaw<EntityRecord>: Send,
RawVecInner: Send,
NodeRef<Owned, String, PropertyValue, LeafOrInternal>: Send,
BoxRaw<(String, PropertyValue)>: Send,
impl Sync for MergeOpwhere
BoxRaw<EntityRecord>: Sync,
RawVecInner: Sync,
NodeRef<Owned, String, PropertyValue, LeafOrInternal>: Sync,
BoxRaw<(String, PropertyValue)>: Sync,
impl Unpin for MergeOpwhere
Box<EntityRecord>: Unpin,
*const u8 is !null: Unpin,
*const LeafNode<String, PropertyValue> is !null: Unpin,
Box<(String, PropertyValue)>: Unpin,
impl UnsafeUnpin for MergeOpwhere
*const EntityRecord is !null: UnsafeUnpin,
PhantomData<EntityRecord>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Link>: UnsafeUnpin,
impl UnwindSafe for MergeOpwhere
BoxRaw<EntityRecord>: UnwindSafe,
RawVecInner: UnwindSafe,
BTreeMap<String, PropertyValue>: 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