pub struct RuleMeta {
pub layer: String,
pub severity: Severity,
pub fixable: bool,
pub fix_safety: Option<String>,
pub message: String,
pub description: String,
}Expand description
Metadata for a single lint rule, loaded from spec/rules.toml.
Fields§
§layer: StringRule layer: "syntax" (P-codes) or "style" (L-codes).
severity: SeverityDefault severity; overridable per rule id via LintConfig.
fixable: boolWhether Phase 2 ships a deterministic fix for this rule.
fix_safety: Option<String>Fix tier: "safe" (auto-apply) or "suggested"; only set when fixable.
message: StringHuman-readable message template with {placeholder} slots.
description: StringOne-line rule description.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RuleMeta
impl<'de> Deserialize<'de> for RuleMeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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