pub struct RelateEntityOutcome {
pub from: EntityId,
pub to: EntityId,
pub rel_type: String,
pub action: RelateAction,
pub content_hash: String,
pub commit_sha: String,
pub source: String,
pub warnings: Vec<WarningHint>,
pub orphan_stubs_removed: Vec<EntityId>,
}Expand description
Successful outcome of [Engine::relate_entity].
Fields§
§from: EntityId§to: EntityId§rel_type: String§action: RelateAction§content_hash: StringSource entity’s content hash after the call. Unchanged on
no-op paths so callers can chain follow-ups without
refetching. Wire key _hash.
commit_sha: StringPer-mem commit identifier returned by the backend’s
crate::backend::MemBackend::commit. Empty on the no-op
paths (RelateAction::NoOpAlreadyPresent,
RelateAction::NoOpAbsent) — those branches skip the disk
write so no commit happens. Wire-equivalent to the full
RelateResult.commit_sha.
source: StringEdge provenance label — always "explicit" for relate-call
outcomes. Wire-equivalent to full’s RelateResult.source field;
reserved for future inline-link-derived edge surfacing.
warnings: Vec<WarningHint>Typed non-fatal issues — open-mode schema admissions
(WarningHint::UndeclaredRelationshipOpen), duplicate-add
no-ops (WarningHint::DuplicateRelationship),
remove-nonexistent no-ops (WarningHint::NoSuchRelationship),
and auto-stubbed targets
(WarningHint::AutoStubCreated). Pre-Item-03 the auto-stub
case rode through a deprecated top-level
stub_warning: Option<String> field that didn’t follow the
warnings[] shape — agents iterating diagnostics silently
skipped it; the field has been retired in favour of the
uniform warning vocabulary. Empty on the strict-add and
strict-remove happy paths.
orphan_stubs_removed: Vec<EntityId>Stub entities whose last incoming edge was severed by a
remove=true call and that were garbage-collected as orphans.
Empty on the add path and on remove paths that didn’t strip
the last referrer. Wire-equivalent to
DeleteEntityOutcome::orphan_stubs_removed; both surfaces
share the same field name so MCP / CLI consumers can branch
uniformly (F7).
Trait Implementations§
Source§impl Clone for RelateEntityOutcome
impl Clone for RelateEntityOutcome
Source§fn clone(&self) -> RelateEntityOutcome
fn clone(&self) -> RelateEntityOutcome
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 RelateEntityOutcome
impl Debug for RelateEntityOutcome
Auto Trait Implementations§
impl Freeze for RelateEntityOutcome
impl RefUnwindSafe for RelateEntityOutcome
impl Send for RelateEntityOutcome
impl Sync for RelateEntityOutcome
impl Unpin for RelateEntityOutcome
impl UnsafeUnpin for RelateEntityOutcome
impl UnwindSafe for RelateEntityOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> Fruit for T
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