pub struct LintRule {
pub id: &'static str,
pub category: RuleCategory,
pub default_severity: RuleSeverity,
pub description: &'static str,
pub effort_minutes: u32,
}Expand description
A lint rule definition.
Fields§
§id: &'static str§category: RuleCategory§default_severity: RuleSeverity§description: &'static str§effort_minutes: u32Estimated remediation effort in minutes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LintRule
impl RefUnwindSafe for LintRule
impl Send for LintRule
impl Sync for LintRule
impl Unpin for LintRule
impl UnsafeUnpin 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