Struct languageserver_types::Diagnostic
[−]
[src]
pub struct Diagnostic {
pub range: Range,
pub severity: Option<DiagnosticSeverity>,
pub code: String,
pub source: Option<String>,
pub message: String,
}Fields
range: Range
The range at which the message applies
severity: Option<DiagnosticSeverity>
The diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint.
code: String
The diagnostic's code. Can be omitted.
source: Option<String>
number | string; A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.
message: String
The diagnostic's message.
Trait Implementations
impl Debug for Diagnostic[src]
impl PartialEq for Diagnostic[src]
fn eq(&self, __arg_0: &Diagnostic) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Diagnostic) -> bool
This method tests for !=.
impl Default for Diagnostic[src]
fn default() -> Diagnostic
Returns the "default value" for a type. Read more