pub enum DiagnosticSeverity {
Error = 1,
Warning = 2,
Information = 3,
Hint = 4,
}
Expand description
The protocol currently supports the following diagnostic severities:
Variants§
Error = 1
Reports an error.
Warning = 2
Reports a warning.
Information = 3
Reports an information.
Hint = 4
Reports a hint.
Trait Implementations§
Source§impl Clone for DiagnosticSeverity
impl Clone for DiagnosticSeverity
Source§fn clone(&self) -> DiagnosticSeverity
fn clone(&self) -> DiagnosticSeverity
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DiagnosticSeverity
impl Debug for DiagnosticSeverity
Source§impl<'de> Deserialize<'de> for DiagnosticSeverity
impl<'de> Deserialize<'de> for DiagnosticSeverity
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
Source§impl PartialEq for DiagnosticSeverity
impl PartialEq for DiagnosticSeverity
Source§impl Serialize for DiagnosticSeverity
impl Serialize for DiagnosticSeverity
impl Copy for DiagnosticSeverity
impl Eq for DiagnosticSeverity
impl StructuralPartialEq for DiagnosticSeverity
Auto Trait Implementations§
impl Freeze for DiagnosticSeverity
impl RefUnwindSafe for DiagnosticSeverity
impl Send for DiagnosticSeverity
impl Sync for DiagnosticSeverity
impl Unpin for DiagnosticSeverity
impl UnwindSafe for DiagnosticSeverity
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