pub struct RuleMeta {
pub id: String,
pub name: String,
pub description: String,
pub default_severity: Severity,
pub required_capabilities: CapabilitySet,
pub autofix_safe: bool,
}Expand description
Static rule descriptor (language-independent catalog entry).
Fields§
§id: String§name: String§description: String§default_severity: Severity§required_capabilities: CapabilitySetCapabilities required; if missing, the rule is skipped (graceful degrade).
autofix_safe: boolWhether an autofix may ever be offered (still subject to safety policy).
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
impl Eq for RuleMeta
impl StructuralPartialEq for RuleMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.