Struct rustfix::diagnostics::Diagnostic [−][src]
pub struct Diagnostic { pub message: String, pub code: Option<DiagnosticCode>, pub spans: Vec<DiagnosticSpan>, pub children: Vec<Diagnostic>, pub rendered: Option<String>, // some fields omitted }
Fields
message: String
The primary error message.
code: Option<DiagnosticCode>
spans: Vec<DiagnosticSpan>
children: Vec<Diagnostic>
Associated diagnostic messages.
rendered: Option<String>
The message as rustc would render it. Currently this is only
Some
for “suggestions”, but eventually it will include all
snippets.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnwindSafe for Diagnostic
Blanket Implementations
Mutably borrows from an owned value. Read more