pub struct RuleMetadata {
pub id: String,
pub name: String,
pub description: String,
pub default_severity: Severity,
pub attack_category: AttackCategory,
pub cwe_id: Option<String>,
}Expand description
Metadata about a detector rule, used for list-rules output.
Fields§
§id: String§name: String§description: String§default_severity: Severity§attack_category: AttackCategory§cwe_id: Option<String>Trait Implementations§
Source§impl Clone for RuleMetadata
impl Clone for RuleMetadata
Source§fn clone(&self) -> RuleMetadata
fn clone(&self) -> RuleMetadata
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 RuleMetadata
impl Debug for RuleMetadata
Source§impl<'de> Deserialize<'de> for RuleMetadata
impl<'de> Deserialize<'de> for RuleMetadata
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 RuleMetadata
impl RefUnwindSafe for RuleMetadata
impl Send for RuleMetadata
impl Sync for RuleMetadata
impl Unpin for RuleMetadata
impl UnsafeUnpin for RuleMetadata
impl UnwindSafe for RuleMetadata
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