#[non_exhaustive]pub struct RepairReport {
pub engine_version: String,
pub source: InputSummary,
pub output_path: Option<PathBuf>,
pub status: RepairStatus,
pub actions: Vec<RepairAction>,
pub refusal: Option<RepairRefusal>,
pub warnings: Vec<ValidationWarning>,
pub task_durations: Vec<TaskDuration>,
}Expand description
Metadata repair report for one input.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.engine_version: StringEngine version that produced the report.
source: InputSummaryInput summary.
output_path: Option<PathBuf>Optional output path when a repaired or unchanged file was written.
status: RepairStatusOverall repair status.
actions: Vec<RepairAction>Actions completed for this input.
refusal: Option<RepairRefusal>Refusal reason when no output was produced.
warnings: Vec<ValidationWarning>User-visible repair warnings.
task_durations: Vec<TaskDuration>Task duration measurements.
Implementations§
Source§impl RepairReport
impl RepairReport
Sourcepub fn builder() -> RepairReportBuilder<((), (), (), (), (), (), (), ())>
pub fn builder() -> RepairReportBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building RepairReport.
On the builder, call .engine_version(...), .source(...), .output_path(...), .status(...), .actions(...), .refusal(...), .warnings(...), .task_durations(...) to set the values of the fields.
Finally, call .build() to create the instance of RepairReport.
Source§impl RepairReport
impl RepairReport
Sourcepub fn wrote_output(&self) -> bool
pub fn wrote_output(&self) -> bool
Returns true when the report describes a written output file.
Trait Implementations§
Source§impl Clone for RepairReport
impl Clone for RepairReport
Source§fn clone(&self) -> RepairReport
fn clone(&self) -> RepairReport
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 RepairReport
impl Debug for RepairReport
Source§impl<'de> Deserialize<'de> for RepairReport
impl<'de> Deserialize<'de> for RepairReport
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 RepairReport
impl RefUnwindSafe for RepairReport
impl Send for RepairReport
impl Sync for RepairReport
impl Unpin for RepairReport
impl UnsafeUnpin for RepairReport
impl UnwindSafe for RepairReport
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