pub enum Severity {
Error,
Warning,
Info,
Hint,
}Expand description
Severity of a diagnostic.
Lower-cased in the wire format ("error", "warning", "info",
"hint"). Renderers map these to terminal colours, LSP severities, and
MCP severity strings.
Variants§
Error
Compilation cannot proceed.
Warning
Compilation proceeds but the user should look.
Info
Informational — used for var inference inlay-hint suggestions
(ADR-006 §1.3) and similar non-actionable feedback.
Hint
Hint — soft suggestions, e.g. style nits or refactor proposals surfaced by tooling consumers.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Severity
impl<'de> Deserialize<'de> for Severity
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
impl Copy for Severity
impl Eq for Severity
impl StructuralPartialEq for Severity
Auto Trait Implementations§
impl Freeze for Severity
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnsafeUnpin for Severity
impl UnwindSafe for Severity
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