pub struct StructuredDiagnostic {
pub class: ResidualClass,
pub code: Option<String>,
pub message: String,
pub path: Option<String>,
pub line: Option<u32>,
pub column: Option<u32>,
pub primary: bool,
pub suggestion: Option<String>,
}Expand description
One diagnostic normalized from a tool’s native output.
Fields§
§class: ResidualClass§code: Option<String>§message: String§path: Option<String>§line: Option<u32>§column: Option<u32>§primary: boolWhether the tool marks this as a primary diagnostic (cascade children are secondary).
suggestion: Option<String>Applicable fix suggestion, when the tool provides one.
Implementations§
Source§impl StructuredDiagnostic
impl StructuredDiagnostic
pub fn to_ref(&self) -> StructuredDiagnosticRef
Trait Implementations§
Source§impl Clone for StructuredDiagnostic
impl Clone for StructuredDiagnostic
Source§impl Debug for StructuredDiagnostic
impl Debug for StructuredDiagnostic
Source§impl PartialEq for StructuredDiagnostic
impl PartialEq for StructuredDiagnostic
impl StructuralPartialEq for StructuredDiagnostic
Auto Trait Implementations§
impl Freeze for StructuredDiagnostic
impl RefUnwindSafe for StructuredDiagnostic
impl Send for StructuredDiagnostic
impl Sync for StructuredDiagnostic
impl Unpin for StructuredDiagnostic
impl UnsafeUnpin for StructuredDiagnostic
impl UnwindSafe for StructuredDiagnostic
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,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.