pub struct LintRuleInfo {
pub name: &'static str,
pub default_severity: Severity,
pub fix: Option<FixDisposition>,
pub description: &'static str,
}Expand description
Metadata describing one lint rule.
Fields§
§name: &'static strStable snake_case identifier (matches LintRule’s Display).
default_severity: SeverityThe severity the rule fires at by default (before config overrides).
fix: Option<FixDisposition>The disposition of the auto-fix the rule can attach, if any. None
means the rule never carries a fix; Some(Safe) means it can attach a
safe, auto-appliable fix.
description: &'static strOne-line, human-readable description of what the rule checks.
Trait Implementations§
Source§impl Clone for LintRuleInfo
impl Clone for LintRuleInfo
Source§fn clone(&self) -> LintRuleInfo
fn clone(&self) -> LintRuleInfo
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 moreimpl Copy for LintRuleInfo
Source§impl Debug for LintRuleInfo
impl Debug for LintRuleInfo
Auto Trait Implementations§
impl Freeze for LintRuleInfo
impl RefUnwindSafe for LintRuleInfo
impl Send for LintRuleInfo
impl Sync for LintRuleInfo
impl Unpin for LintRuleInfo
impl UnsafeUnpin for LintRuleInfo
impl UnwindSafe for LintRuleInfo
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