pub struct LintRule {
pub id: String,
pub pattern: String,
pub replacement: String,
pub message: String,
pub severity: Severity,
}Expand description
A single lint rule from configuration
Fields§
§id: StringUnique identifier for the lint
pattern: StringPattern to match (space-separated words, $X for wildcards)
replacement: StringSuggested replacement (empty string means “remove”)
message: StringHuman-readable message
severity: SeveritySeverity level
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LintRule
impl<'de> Deserialize<'de> for LintRule
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 LintRule
impl RefUnwindSafe for LintRule
impl Send for LintRule
impl Sync for LintRule
impl Unpin for LintRule
impl UnwindSafe for LintRule
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