pub struct Detection<'s> {
pub rules: HashSet<Cow<'s, str>>,
pub tags: HashSet<Cow<'s, str>>,
pub attack: HashSet<Cow<'s, str>>,
pub actions: HashSet<Cow<'s, str>>,
pub severity: u8,
}Expand description
Structure holding information about the detection rules matching the Event.
Fields§
§rules: HashSet<Cow<'s, str>>Union of the rule names matching the event
Union of tags defined in the rules matching the event
attack: HashSet<Cow<'s, str>>Union of attack ids defined in the rules matching the event
actions: HashSet<Cow<'s, str>>Union of actions defined in the rules matching the event
severity: u8Sum of all matching rules’ severity (bounded to MAX_SEVERITY)
Trait Implementations§
Source§impl<'de, 's> Deserialize<'de> for Detection<'s>
impl<'de, 's> Deserialize<'de> for Detection<'s>
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
Source§impl<'field, 's> FieldGetter<'field> for Detection<'s>
impl<'field, 's> FieldGetter<'field> for Detection<'s>
Source§fn get_from_iter(
&'field self,
i: FieldNameIterator<'_>,
) -> Option<FieldValue<'field>>
fn get_from_iter( &'field self, i: FieldNameIterator<'_>, ) -> Option<FieldValue<'field>>
Gets a field value using an iterator of path segments. Read more
Source§fn get_from_path(&'field self, path: &XPath) -> Option<FieldValue<'field>>
fn get_from_path(&'field self, path: &XPath) -> Option<FieldValue<'field>>
impl<'s> StructuralPartialEq for Detection<'s>
Auto Trait Implementations§
impl<'s> Freeze for Detection<'s>
impl<'s> RefUnwindSafe for Detection<'s>
impl<'s> Send for Detection<'s>
impl<'s> Sync for Detection<'s>
impl<'s> Unpin for Detection<'s>
impl<'s> UnsafeUnpin for Detection<'s>
impl<'s> UnwindSafe for Detection<'s>
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