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

The severity of the message, used to set color scheme

Message used as the headline of the error

A short error number or code

Locations to underline in the code

Trait Implementations

impl Clone for Diagnostic
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Diagnostic
[src]

Formats the value using the given formatter.