pub struct MergePreimage {
pub into: Box<EntityRecord>,
pub from: Box<EntityRecord>,
pub incident_edges: Vec<Link>,
}Expand description
Full prior state required to validate and rewire an entity merge.
Both participants are carried whole, with the keys they hold and their aliases (ADR-221 section 4). Canonical apply does not run a merge yet; the record is complete for the applier that will.
See crates/khive-changeset/docs/api/delete-and-merge.md for edge coverage rules.
Fields§
§into: Box<EntityRecord>§from: Box<EntityRecord>§incident_edges: Vec<Link>Trait Implementations§
Source§impl Clone for MergePreimage
impl Clone for MergePreimage
Source§impl Debug for MergePreimage
impl Debug for MergePreimage
Source§impl<'de> Deserialize<'de> for MergePreimage
impl<'de> Deserialize<'de> for MergePreimage
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 MergePreimage
impl Freeze for MergePreimagewhere
*const EntityRecord is !null: Freeze,
PhantomData<EntityRecord>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Link>: Freeze,
impl Move for MergePreimage
impl RefUnwindSafe for MergePreimage
impl Send for MergePreimagewhere
BoxRaw<EntityRecord>: Send,
RawVecInner: Send,
NodeRef<Owned, String, PropertyValue, LeafOrInternal>: Send,
BoxRaw<(String, PropertyValue)>: Send,
impl Sync for MergePreimagewhere
BoxRaw<EntityRecord>: Sync,
RawVecInner: Sync,
NodeRef<Owned, String, PropertyValue, LeafOrInternal>: Sync,
BoxRaw<(String, PropertyValue)>: Sync,
impl Unpin for MergePreimagewhere
Box<EntityRecord>: Unpin,
*const u8 is !null: Unpin,
*const LeafNode<String, PropertyValue> is !null: Unpin,
Box<(String, PropertyValue)>: Unpin,
impl UnsafeUnpin for MergePreimagewhere
*const EntityRecord is !null: UnsafeUnpin,
PhantomData<EntityRecord>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Link>: UnsafeUnpin,
impl UnwindSafe for MergePreimagewhere
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