pub struct RuleConditions {
pub source_types: Vec<String>,
pub severities: Vec<String>,
pub title_pattern: Option<String>,
pub description_pattern: Option<String>,
pub signal_patterns: Vec<String>,
pub min_confidence: Option<f32>,
}Expand description
Conditions for rule matching
Fields§
§source_types: Vec<String>Match source type
severities: Vec<String>Match severity (if any match)
title_pattern: Option<String>Match title pattern (regex)
description_pattern: Option<String>Match description pattern (regex)
signal_patterns: Vec<String>Match signals containing these patterns
min_confidence: Option<f32>Minimum confidence threshold
Trait Implementations§
Source§impl Clone for RuleConditions
impl Clone for RuleConditions
Source§fn clone(&self) -> RuleConditions
fn clone(&self) -> RuleConditions
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 RuleConditions
impl Debug for RuleConditions
Source§impl Default for RuleConditions
impl Default for RuleConditions
Source§fn default() -> RuleConditions
fn default() -> RuleConditions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuleConditions
impl<'de> Deserialize<'de> for RuleConditions
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 RuleConditions
impl RefUnwindSafe for RuleConditions
impl Send for RuleConditions
impl Sync for RuleConditions
impl Unpin for RuleConditions
impl UnsafeUnpin for RuleConditions
impl UnwindSafe for RuleConditions
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