pub enum Level {
Error = 1,
Deny = 2,
Warn = 3,
Suggest = 4,
}Expand description
Represents the severity level of a lint.
The level of a lint can be overwritten via CLI flags and configuration files.
Variants§
Error = 1
Lint rules leading to errors.
Lint rules with this severity level are used when encountering broken or invalid data.
Deny = 2
Lint rules leading to denials.
Lint rules with this severity level always represent bad practices or severe errors.
Warn = 3
Lint rules leading to warnings.
Lint rules with this severity level indicate a mistake or misconfiguration and are considered to be detectable with a high degree of certainty.
Suggest = 4
Lint rules leading to suggestions.
Lint rules with this severity level are used to suggest best practices, which when not followed do not lead to functional issues.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Level
impl<'de> Deserialize<'de> for Level
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 PartialOrd for Level
impl PartialOrd for Level
impl Copy for Level
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnwindSafe for Level
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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