pub struct LintDiag {
pub range: Range,
pub severity: Severity,
pub code: Option<NumberOrString>,
pub source: Option<String>,
pub message: String,
pub id: String,
pub uri: String,
}
Fields§
§range: Range
The range at which the message applies.
severity: Severity
The diagnostic’s severity.
code: Option<NumberOrString>
The diagnostic’s code. Can be omitted.
source: Option<String>
A human-readable string describing the source of this diagnostic, e.g. ‘typescript’ or ‘super lint’.
message: String
The diagnostic’s message.
id: String
§uri: String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LintDiag
impl<'de> Deserialize<'de> for LintDiag
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LintDiag
impl RefUnwindSafe for LintDiag
impl Send for LintDiag
impl Sync for LintDiag
impl Unpin for LintDiag
impl UnwindSafe for LintDiag
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more