pub struct DeleteEntityOutcome {
pub id: EntityId,
pub file_path: String,
pub removed_incoming: Vec<String>,
pub relations_removed: usize,
pub commit_sha: String,
pub orphan_stubs_removed: Vec<EntityId>,
pub warnings: Vec<WarningHint>,
}Expand description
Successful outcome of [Engine::delete_entity].
Fields§
§id: EntityId§file_path: String§removed_incoming: Vec<String>Ids of entities that referenced the deleted entity (only populated on the residual-stub-demotion path — the surviving ReadOnly-mount referrers are listed here for diagnostic continuity with the warning payload).
relations_removed: usizeTotal edges removed across incoming + outgoing — full
DeleteResult.relations_removed. Counted from the store
pre-delete; both directions sum into one number for callers
that need a single “how much did this delete cascade” signal.
commit_sha: StringPer-mem commit identifier returned by the backend’s
crate::backend::MemBackend::commit. Wire-equivalent to
full’s DeleteResult.commit_sha.
orphan_stubs_removed: Vec<EntityId>Stub entities that became orphaned by this delete (their last
incoming edge disappeared with this entity) and were
garbage-collected. Empty on deletes that didn’t sever a
stub’s last referrer. Wire-equivalent to full’s
DeleteResult.orphan_stubs_removed.
warnings: Vec<WarningHint>Typed non-fatal issues — populated on the residual-stub
demotion path with a RESIDUAL_STUB_FOR_READONLY_REFERRERS
warning naming the surviving ReadOnly-mount referrers. Empty
on the clean-removal path.
Trait Implementations§
Source§impl Clone for DeleteEntityOutcome
impl Clone for DeleteEntityOutcome
Source§fn clone(&self) -> DeleteEntityOutcome
fn clone(&self) -> DeleteEntityOutcome
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 DeleteEntityOutcome
impl Debug for DeleteEntityOutcome
Auto Trait Implementations§
impl Freeze for DeleteEntityOutcome
impl RefUnwindSafe for DeleteEntityOutcome
impl Send for DeleteEntityOutcome
impl Sync for DeleteEntityOutcome
impl Unpin for DeleteEntityOutcome
impl UnsafeUnpin for DeleteEntityOutcome
impl UnwindSafe for DeleteEntityOutcome
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