pub struct RuleDocOwned {
pub name: String,
pub category: String,
pub description: String,
pub severity: String,
pub why: String,
pub bad_example: String,
pub good_example: String,
pub references: Vec<String>,
pub is_plugin: bool,
}Expand description
Documentation for a lint rule (owned version, supports plugins)
Fields§
§name: StringRule name (e.g., “server-tokens-enabled”)
category: StringCategory (e.g., “security”)
description: StringShort description
severity: StringSeverity level
why: StringWhy this rule exists
bad_example: StringExample of bad configuration
good_example: StringExample of good configuration
references: Vec<String>References (URLs, documentation links)
is_plugin: boolWhether this is from a plugin
Trait Implementations§
Source§impl Clone for RuleDocOwned
impl Clone for RuleDocOwned
Source§fn clone(&self) -> RuleDocOwned
fn clone(&self) -> RuleDocOwned
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuleDocOwned
impl Debug for RuleDocOwned
Auto Trait Implementations§
impl Freeze for RuleDocOwned
impl RefUnwindSafe for RuleDocOwned
impl Send for RuleDocOwned
impl Sync for RuleDocOwned
impl Unpin for RuleDocOwned
impl UnwindSafe for RuleDocOwned
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