pub enum RuleSeverity {
Off,
Info,
Warn,
Error,
Critical,
}Expand description
Per-rule severity override.
Mirrors ESLint’s "off" / "warn" / "error" vocabulary, extended with
the two IMF severity levels.
Variants§
Off
Suppress this rule entirely — matching issues are removed from output.
Info
Remap to Info.
Warn
Remap to Warning.
Error
Remap to Error.
Critical
Remap to Critical.
Trait Implementations§
Source§impl Clone for RuleSeverity
impl Clone for RuleSeverity
Source§fn clone(&self) -> RuleSeverity
fn clone(&self) -> RuleSeverity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RuleSeverity
impl Debug for RuleSeverity
Source§impl<'de> Deserialize<'de> for RuleSeverity
impl<'de> Deserialize<'de> for RuleSeverity
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 Eq for RuleSeverity
Source§impl PartialEq for RuleSeverity
impl PartialEq for RuleSeverity
Source§fn eq(&self, other: &RuleSeverity) -> bool
fn eq(&self, other: &RuleSeverity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RuleSeverity
impl Serialize for RuleSeverity
impl StructuralPartialEq for RuleSeverity
Auto Trait Implementations§
impl Freeze for RuleSeverity
impl RefUnwindSafe for RuleSeverity
impl Send for RuleSeverity
impl Sync for RuleSeverity
impl Unpin for RuleSeverity
impl UnsafeUnpin for RuleSeverity
impl UnwindSafe for RuleSeverity
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