pub struct RuleDoc {
pub name: &'static str,
pub category: &'static str,
pub description: &'static str,
pub severity: &'static str,
pub why: &'static str,
pub bad_example: &'static str,
pub good_example: &'static str,
pub references: &'static [&'static str],
}Expand description
Documentation for a lint rule (static version for native rules)
Fields§
§name: &'static strRule name (e.g., “server-tokens-enabled”)
category: &'static strCategory (e.g., “security”)
description: &'static strShort description
severity: &'static strSeverity level
why: &'static strWhy this rule exists
bad_example: &'static strExample of bad configuration
good_example: &'static strExample of good configuration
references: &'static [&'static str]References (URLs, documentation links)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuleDoc
impl RefUnwindSafe for RuleDoc
impl Send for RuleDoc
impl Sync for RuleDoc
impl Unpin for RuleDoc
impl UnwindSafe for RuleDoc
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