pub struct RuleDefinition {
pub id: &'static str,
pub name: &'static str,
pub description: &'static str,
pub default_severity: Severity,
pub category: RuleCategory,
pub why: &'static str,
pub bad_example: &'static str,
pub good_example: &'static str,
}Fields§
§id: &'static str§name: &'static str§description: &'static str§default_severity: Severity§category: RuleCategory§why: &'static str§bad_example: &'static str§good_example: &'static strTrait Implementations§
Source§impl Clone for RuleDefinition
impl Clone for RuleDefinition
impl Copy for RuleDefinition
Auto Trait Implementations§
impl Freeze for RuleDefinition
impl RefUnwindSafe for RuleDefinition
impl Send for RuleDefinition
impl Sync for RuleDefinition
impl Unpin for RuleDefinition
impl UnsafeUnpin for RuleDefinition
impl UnwindSafe for RuleDefinition
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