pub struct ParseRecoveryEntry {
pub entity_id: EntityId,
pub rel_type: String,
pub target: EntityId,
pub outcome: String,
pub reason: Option<String>,
}Expand description
Per-entry result of an apply_parse_recovery call. One entry per
PARSED_RELATION_INVALID warning the engine observed at the call
site: the bulk-fix dispatches the writable-origin recoveries and
reports the read-only-origin warnings as skipped. Wire-equivalent
across MCP, CLI, and UniFFI surfaces; the renderer chooses the
shape it prefers.
outcome is the stable discriminator. Current values:
"removed"— the source entity was re-rendered; the parse-time- dropped row no longer appears in the on-disk markdown.reasonisNone."skipped"— the engine intentionally did not attempt the recovery.reasoncarries a stable code:"readonly_mount"(source mem is read-only and not engine-writable)."failed"— the engine attempted the recovery and the underlying mutation surfaced a typed error.reasoncarries the engine’sUPPER_SNAKE_CASEerror code (HASH_MISMATCH,WIKILINK_WITHOUT_RELATION, etc.). The original entity-side drift survives and will surface again on the next reload.
Fields§
§entity_id: EntityId§rel_type: String§target: EntityId§outcome: String§reason: Option<String>Implementations§
Source§impl ParseRecoveryEntry
impl ParseRecoveryEntry
pub const OUTCOME_REMOVED: &'static str = "removed"
pub const OUTCOME_SKIPPED: &'static str = "skipped"
pub const OUTCOME_FAILED: &'static str = "failed"
Sourcepub const REASON_READONLY_MOUNT: &'static str = "readonly_mount"
pub const REASON_READONLY_MOUNT: &'static str = "readonly_mount"
Stable reason value for read-only-origin warnings the bulk-fix cannot act on — the source markdown is not engine-writable.
Trait Implementations§
Source§impl Clone for ParseRecoveryEntry
impl Clone for ParseRecoveryEntry
Source§fn clone(&self) -> ParseRecoveryEntry
fn clone(&self) -> ParseRecoveryEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseRecoveryEntry
impl Debug for ParseRecoveryEntry
Source§impl Serialize for ParseRecoveryEntry
impl Serialize for ParseRecoveryEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ParseRecoveryEntry
impl RefUnwindSafe for ParseRecoveryEntry
impl Send for ParseRecoveryEntry
impl Sync for ParseRecoveryEntry
impl Unpin for ParseRecoveryEntry
impl UnsafeUnpin for ParseRecoveryEntry
impl UnwindSafe for ParseRecoveryEntry
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
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>
Converts
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>
Converts
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)
Converts
&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)
Converts
&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>
Converts
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>
Converts
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