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 conventionally hidden from them
expansions (matching the behavior already shared between the evaluator
and the converter). For SelectorPattern::Pattern, dispatch goes
through detection_name_matches.
Trait Implementations§
Source§impl Clone for SelectorPattern
impl Clone for SelectorPattern
Source§fn clone(&self) -> SelectorPattern
fn clone(&self) -> SelectorPattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SelectorPattern
impl Debug for SelectorPattern
Source§impl Display for SelectorPattern
impl Display for SelectorPattern
impl Eq for SelectorPattern
Source§impl PartialEq for SelectorPattern
impl PartialEq for SelectorPattern
Source§fn eq(&self, other: &SelectorPattern) -> bool
fn eq(&self, other: &SelectorPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.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,
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.