pub struct RuleMeta {
pub description: &'static str,
pub fix_hint: &'static str,
pub default_severity: Severity,
}Expand description
Static metadata for a rule, cached for reporters to look up.
Fields§
§description: &'static strOne-line human description of what the rule enforces.
fix_hint: &'static strOne-line suggested remediation.
default_severity: SeverityDefault severity before any config overrides.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuleMeta
impl RefUnwindSafe for RuleMeta
impl Send for RuleMeta
impl Sync for RuleMeta
impl Unpin for RuleMeta
impl UnsafeUnpin for RuleMeta
impl UnwindSafe for RuleMeta
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