pub struct RecoveryFinding {
pub error_code: String,
pub issue_kind: RecoveryIssueKind,
pub action_group: Option<RecoveryActionGroup>,
pub description: String,
pub severity: DiagnosisSeverity,
pub target_path: Option<String>,
}Expand description
A recovery-oriented interpretation of a diagnostic.
Fields§
§error_code: StringStable diagnostic code mirrored from the originating diagnostic.
issue_kind: RecoveryIssueKindHigh-level issue classification.
action_group: Option<RecoveryActionGroup>Optional user-facing action grouping.
description: StringHuman-readable description of the recovery issue.
severity: DiagnosisSeveritySeverity inherited from the originating diagnostic.
target_path: Option<String>Optional target path for repair actions.
Implementations§
Source§impl RecoveryFinding
impl RecoveryFinding
Sourcepub fn from_diagnosis(diagnosis: &DiagnosisResult) -> Option<Self>
pub fn from_diagnosis(diagnosis: &DiagnosisResult) -> Option<Self>
Map a diagnostic into a recovery finding when the error code is actionable.
Sourcepub fn with_target_path(self, target_path: impl Into<String>) -> Self
pub fn with_target_path(self, target_path: impl Into<String>) -> Self
Attach a filesystem target path to the finding.
Trait Implementations§
Source§impl Clone for RecoveryFinding
impl Clone for RecoveryFinding
Source§fn clone(&self) -> RecoveryFinding
fn clone(&self) -> RecoveryFinding
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 RecoveryFinding
impl Debug for RecoveryFinding
Source§impl<'de> Deserialize<'de> for RecoveryFinding
impl<'de> Deserialize<'de> for RecoveryFinding
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 RecoveryFinding
impl PartialEq for RecoveryFinding
Source§impl Serialize for RecoveryFinding
impl Serialize for RecoveryFinding
impl Eq for RecoveryFinding
impl StructuralPartialEq for RecoveryFinding
Auto Trait Implementations§
impl Freeze for RecoveryFinding
impl RefUnwindSafe for RecoveryFinding
impl Send for RecoveryFinding
impl Sync for RecoveryFinding
impl Unpin for RecoveryFinding
impl UnwindSafe for RecoveryFinding
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