pub struct RuleSelector {
pub id: Vec<String>,
pub name: Vec<String>,
pub title: Vec<String>,
pub tags: Vec<String>,
pub level: Vec<String>,
pub status: Vec<String>,
pub kind: Vec<String>,
pub path: Vec<String>,
pub logsource: Option<LogsourceSelector>,
pub unknown: BTreeMap<String, Value>,
}Expand description
A metadata selector. Every key that is set must match; values within a key are alternatives.
Fields§
§id: Vec<String>Rule ids, case-insensitive.
name: Vec<String>Rule name values, exact.
title: Vec<String>Title globs, case-insensitive.
Tag globs, case-insensitive; a document matches when any tag does.
level: Vec<String>Levels, in their exact lowercase Sigma spelling.
status: Vec<String>Statuses, in their exact lowercase Sigma spelling.
kind: Vec<String>Document kinds: detection, correlation, or filter.
path: Vec<String>Globs over the file path relative to its source root; * does not
cross /.
logsource: Option<LogsourceSelector>Logsource fields; a correlation matches through the rules it references.
unknown: BTreeMap<String, Value>Unknown keys, rejected at validation time.
Trait Implementations§
Source§impl Clone for RuleSelector
impl Clone for RuleSelector
Source§impl Debug for RuleSelector
impl Debug for RuleSelector
Source§impl Default for RuleSelector
impl Default for RuleSelector
Source§impl<'de> Deserialize<'de> for RuleSelector
impl<'de> Deserialize<'de> for RuleSelector
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 PartialEq for RuleSelector
impl PartialEq for RuleSelector
Source§impl Serialize for RuleSelector
impl Serialize for RuleSelector
impl StructuralPartialEq for RuleSelector
Auto Trait Implementations§
impl Forget for RuleSelector
impl Freeze for RuleSelector
impl Move for RuleSelector
impl RefUnwindSafe for RuleSelector
impl Send for RuleSelector
impl Sync for RuleSelector
impl Unpin for RuleSelector
impl UnsafeUnpin for RuleSelector
impl UnwindSafe for RuleSelector
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