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§
Source§impl Serialize for LintRule
impl Serialize for LintRule
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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 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