pub struct MergeSummary {
pub kept_id: Uuid,
pub removed_id: Uuid,
pub edges_rewired: usize,
pub edges_contract_skipped: usize,
pub edge_conflict_preimages: Vec<MergeEdgeConflictPreimage>,
pub properties_merged: usize,
pub tags_unioned: usize,
pub content_appended: bool,
pub dry_run: bool,
pub tx_budget: MergeTxBudgetReport,
pub embedding_truncation: EmbeddingTruncationReport,
}Expand description
Result returned by merge_entity / merge_note.
Fields§
§kept_id: Uuid§removed_id: Uuid§edges_rewired: usize§edges_contract_skipped: usizeIncident edges dropped instead of rewired because the rewired
(source, relation, target) triple would violate the pack endpoint
contract link enforces (khive#1216) — consistent with the existing
dangling-endpoint skip behavior, never silently rewired into a
contract-violating edge.
edge_conflict_preimages: Vec<MergeEdgeConflictPreimage>Full preimages for natural-key edge conflicts resolved by this merge. Each entry names the surviving row, the dropped duplicate, and every incident edge cascaded with it so the destructive step is reversible.
properties_merged: usize§content_appended: bool§dry_run: bool§tx_budget: MergeTxBudgetReportRows and bytes this merge materialized against the per-transaction budget, alongside the limits it was admitted under. Enforcement already happened inside the transaction; this is the observed usage.
embedding_truncation: EmbeddingTruncationReportActual embedding-input truncation observed while reindexing the survivor.
Trait Implementations§
Source§impl Clone for MergeSummary
impl Clone for MergeSummary
Source§fn clone(&self) -> MergeSummary
fn clone(&self) -> MergeSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MergeSummary
impl Debug for MergeSummary
Source§impl<'de> Deserialize<'de> for MergeSummary
impl<'de> Deserialize<'de> for MergeSummary
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>,
Auto Trait Implementations§
impl Freeze for MergeSummary
impl RefUnwindSafe for MergeSummary
impl Send for MergeSummary
impl Sync for MergeSummary
impl Unpin for MergeSummary
impl UnsafeUnpin for MergeSummary
impl UnwindSafe for MergeSummary
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more