pub struct RepairFootprint {
pub footprint_id: String,
pub session_id: String,
pub node_id: String,
pub revision_id: String,
pub attempt: u32,
pub affected_files: Vec<String>,
pub applied_bundle: ArtifactBundle,
pub diagnosis: String,
pub resolved: bool,
pub created_at: i64,
}Expand description
A bounded repair unit that records what was changed during a correction.
Instead of raw last_written_file tracking, every correction pass creates
a RepairFootprint that records the affected files, applied bundle,
verification result before/after, and the node being repaired.
Fields§
§footprint_id: StringUnique footprint identifier.
session_id: StringSession ID.
node_id: StringNode ID being repaired.
revision_id: StringWhich plan revision was active when the repair happened.
attempt: u32Correction attempt number within this node (1-based).
affected_files: Vec<String>Files that were modified by the repair bundle.
applied_bundle: ArtifactBundleThe artifact bundle applied during this repair.
diagnosis: StringBrief summary of what was wrong (from verifier output).
resolved: boolWhether the repair resolved the issue.
created_at: i64Epoch seconds.
Implementations§
Source§impl RepairFootprint
impl RepairFootprint
Sourcepub fn new(
session_id: impl Into<String>,
node_id: impl Into<String>,
revision_id: impl Into<String>,
attempt: u32,
bundle: &ArtifactBundle,
diagnosis: impl Into<String>,
) -> Self
pub fn new( session_id: impl Into<String>, node_id: impl Into<String>, revision_id: impl Into<String>, attempt: u32, bundle: &ArtifactBundle, diagnosis: impl Into<String>, ) -> Self
Create a new repair footprint.
Sourcepub fn mark_resolved(&mut self)
pub fn mark_resolved(&mut self)
Mark this footprint as having resolved the issue.
Trait Implementations§
Source§impl Clone for RepairFootprint
impl Clone for RepairFootprint
Source§fn clone(&self) -> RepairFootprint
fn clone(&self) -> RepairFootprint
Returns a duplicate of the value. Read more
1.0.0 · 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 RepairFootprint
impl Debug for RepairFootprint
Source§impl<'de> Deserialize<'de> for RepairFootprint
impl<'de> Deserialize<'de> for RepairFootprint
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RepairFootprint
impl RefUnwindSafe for RepairFootprint
impl Send for RepairFootprint
impl Sync for RepairFootprint
impl Unpin for RepairFootprint
impl UnsafeUnpin for RepairFootprint
impl UnwindSafe for RepairFootprint
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