pub enum SelectorPattern {
Them,
Pattern(String),
}Expand description
Target pattern in a selector expression.
Variants§
Them
All detection identifiers: ... of them
Pattern(String)
A wildcard pattern matching detection names: ... of selection_*
Implementations§
Source§impl SelectorPattern
impl SelectorPattern
Sourcepub fn matches_detection_name(&self, name: &str) -> bool
pub fn matches_detection_name(&self, name: &str) -> bool
Return true if this selector pattern matches a detection identifier.
Identifiers beginning with _ are hidden from them and from every
pattern that does not itself begin with _, as in the Sigma
specification and pySigma. Otherwise
SelectorPattern::Pattern dispatches through
detection_name_matches.
Trait Implementations§
Source§impl Clone for SelectorPattern
impl Clone for SelectorPattern
Source§impl Debug for SelectorPattern
impl Debug for SelectorPattern
Source§impl<'de> Deserialize<'de> for SelectorPattern
impl<'de> Deserialize<'de> for SelectorPattern
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 Display for SelectorPattern
impl Display for SelectorPattern
impl Eq for SelectorPattern
Source§impl PartialEq for SelectorPattern
impl PartialEq for SelectorPattern
Source§impl Serialize for SelectorPattern
impl Serialize for SelectorPattern
impl StructuralPartialEq for SelectorPattern
Auto Trait Implementations§
impl Freeze for SelectorPattern
impl RefUnwindSafe for SelectorPattern
impl Send for SelectorPattern
impl Sync for SelectorPattern
impl Unpin for SelectorPattern
impl UnsafeUnpin for SelectorPattern
impl UnwindSafe for SelectorPattern
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.