pub struct MergeOp {
pub into_id: Id128,
pub from_id: Id128,
pub preimage: MergePreimage,
}Expand description
Merge two entities. preimage captures both prior entities and the
incident edges the merge will rewire — required, not optional, so a
merge op without a captured preimage is unrepresentable. into_id /
from_id are validated against preimage.into / preimage.from’s own
record ids, and every incident edge is validated to actually touch one
of the two merge participants, at deserialize time.
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 Freeze for MergeOp
impl RefUnwindSafe for MergeOp
impl Send for MergeOp
impl Sync for MergeOp
impl Unpin for MergeOp
impl UnsafeUnpin for MergeOp
impl UnwindSafe for MergeOp
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