Struct codemap_diagnostic::Diagnostic
[−]
[src]
pub struct Diagnostic { pub level: Level, pub message: String, pub code: Option<String>, pub spans: Vec<SpanLabel>, }
A diagnostic message.
Fields
level: Level
The severity of the message, used to set color scheme
message: String
Message used as the headline of the error
code: Option<String>
A short error number or code
spans: Vec<SpanLabel>
Locations to underline in the code
Trait Implementations
impl Clone for Diagnostic
[src]
fn clone(&self) -> Diagnostic
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more