pub struct Diagnostic {
pub severity: Severity,
pub headline: String,
pub file_path: Option<String>,
pub context: Option<Context>,
pub notes: Vec<String>,
}Expand description
A diagnostic over some source file.
Fields§
§severity: SeverityThe diagnostic severity.
headline: StringThe diagnostic headline.
file_path: Option<String>The diagnostic filepath.
context: Option<Context>The diagnostic context.
notes: Vec<String>The nodes.
Implementations§
Source§impl Diagnostic
impl Diagnostic
Trait Implementations§
Source§impl Debug for Diagnostic
impl Debug for Diagnostic
Source§impl Display for Diagnostic
impl Display for Diagnostic
Source§impl Error for Diagnostic
impl Error for Diagnostic
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Diagnostic
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnwindSafe for Diagnostic
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