pub struct ApplyReport {
pub schema_version: String,
pub min_confidence: PatchConfidence,
pub applied_patch_count: usize,
pub skipped_patch_count: usize,
pub score_before: f64,
pub score_after: f64,
pub errors_before: usize,
pub errors_after: usize,
pub warnings_before: usize,
pub warnings_after: usize,
pub applied_codes: Vec<String>,
pub remaining_findings: usize,
}Expand description
Verified before/after summary produced by apply_patches.
Fields§
§schema_version: StringSchema version.
min_confidence: PatchConfidenceMinimum patch confidence applied ("high" or "medium").
applied_patch_count: usizeNumber of patches successfully applied to the catalog.
skipped_patch_count: usizeNumber of suggested patches skipped (below confidence threshold or unsafe rename collision).
score_before: f64Catalog overall score before applying patches (1.0–5.0).
score_after: f64Catalog overall score after applying patches (1.0–5.0).
errors_before: usizeError count before patching.
errors_after: usizeError count after patching.
warnings_before: usizeWarning count before patching.
warnings_after: usizeWarning count after patching.
applied_codes: Vec<String>Deduplicated rule codes remediated in this pass.
remaining_findings: usizeRemaining findings after patching (typically prose/schema authoring items).
Implementations§
Source§impl ApplyReport
impl ApplyReport
Sourcepub fn to_json_pretty(&self) -> Result<String>
pub fn to_json_pretty(&self) -> Result<String>
Serializes this apply report as pretty-printed JSON.
Sourcepub fn to_json_compact(&self) -> Result<String>
pub fn to_json_compact(&self) -> Result<String>
Serializes this apply report as minified single-line JSON.
Trait Implementations§
Source§impl Clone for ApplyReport
impl Clone for ApplyReport
Source§impl Debug for ApplyReport
impl Debug for ApplyReport
Source§impl<'de> Deserialize<'de> for ApplyReport
impl<'de> Deserialize<'de> for ApplyReport
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
Source§impl PartialEq for ApplyReport
impl PartialEq for ApplyReport
Source§impl Serialize for ApplyReport
impl Serialize for ApplyReport
impl StructuralPartialEq for ApplyReport
Auto Trait Implementations§
impl Forget for ApplyReport
impl Freeze for ApplyReport
impl Move for ApplyReport
impl RefUnwindSafe for ApplyReport
impl Send for ApplyReportwhere
RawVecInner: Send,
impl Sync for ApplyReportwhere
RawVecInner: Sync,
impl Unpin for ApplyReport
impl UnsafeUnpin for ApplyReportwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for ApplyReportwhere
RawVecInner: UnwindSafe,
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