pub struct RetypeEntityOutcome {
pub id: EntityId,
pub file_path: String,
pub old_type: String,
pub new_type: String,
pub content_hash: String,
pub prospective_hash: Option<String>,
pub write_id: String,
pub sections_renamed: Vec<(String, String)>,
pub edges_rechecked: usize,
pub checks_stale: bool,
pub staleness_note: String,
pub warnings: Vec<WarningHint>,
}Expand description
Successful outcome of [Engine::retype_entity].
Fields§
§id: EntityId§file_path: StringUnchanged by the retype — the id and path are the point.
old_type: String§new_type: String§content_hash: StringWire key _hash: the content hash after the write (the next
expected_hash); on a dry run the UNCHANGED current hash.
prospective_hash: Option<String>The hash the entity would carry after the write — dry runs only.
write_id: StringThe identity the mem’s backend minted for this write — a commit SHA on a git-branch mem, an opaque synthetic token on a folder or in-memory mem. An identity, never a change cursor. Empty on a dry run (no disk write happened).
sections_renamed: Vec<(String, String)>(old key, new key) pairs the section_map applied.
edges_rechecked: usizeEvery edge examined against the target type’s pins: outgoing, incoming (loaded), and incoming from deferred mems.
checks_stale: boolAlways true: the content hash moved, so every check record and derivation baseline keyed to the previous hash is stale.
staleness_note: StringThe sentence that says so, for the surface to print.
warnings: Vec<WarningHint>Trait Implementations§
Source§impl Clone for RetypeEntityOutcome
impl Clone for RetypeEntityOutcome
Source§fn clone(&self) -> RetypeEntityOutcome
fn clone(&self) -> RetypeEntityOutcome
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 RetypeEntityOutcome
impl Debug for RetypeEntityOutcome
Auto Trait Implementations§
impl Freeze for RetypeEntityOutcome
impl RefUnwindSafe for RetypeEntityOutcome
impl Send for RetypeEntityOutcome
impl Sync for RetypeEntityOutcome
impl Unpin for RetypeEntityOutcome
impl UnsafeUnpin for RetypeEntityOutcome
impl UnwindSafe for RetypeEntityOutcome
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