Struct codespan_reporting::Diagnostic[][src]

pub struct Diagnostic {
    pub severity: Severity,
    pub code: Option<String>,
    pub message: String,
    pub labels: Vec<Label>,
}

Represents a diagnostic message and associated child messages.

Fields

The overall severity of the diagnostic

An optional code that identifies this diagnostic.

The main message associated with this diagnostic

The labelled spans marking the regions of code that cause this diagnostic to be raised

Methods

impl Diagnostic
[src]

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. Read more

Auto Trait Implementations

impl Send for Diagnostic

impl Sync for Diagnostic