pub struct RuleIdentity {
pub kind: RuleKind,
pub id: Option<String>,
pub title: String,
}Expand description
A rule’s identity: its kind plus the id and title it is known by.
Kept structured rather than flattened to a single string so a detection rule and a correlation rule that happen to share a key stay distinguishable.
Fields§
§kind: RuleKindWhether this is a detection or a correlation rule.
id: Option<String>The rule’s id, when it declares one.
title: StringThe rule’s title.
Implementations§
Trait Implementations§
Source§impl Clone for RuleIdentity
impl Clone for RuleIdentity
Source§fn clone(&self) -> RuleIdentity
fn clone(&self) -> RuleIdentity
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 RuleIdentity
impl Debug for RuleIdentity
impl Eq for RuleIdentity
Source§impl PartialEq for RuleIdentity
impl PartialEq for RuleIdentity
Source§impl Serialize for RuleIdentity
impl Serialize for RuleIdentity
impl StructuralPartialEq for RuleIdentity
Auto Trait Implementations§
impl Freeze for RuleIdentity
impl RefUnwindSafe for RuleIdentity
impl Send for RuleIdentity
impl Sync for RuleIdentity
impl Unpin for RuleIdentity
impl UnsafeUnpin for RuleIdentity
impl UnwindSafe for RuleIdentity
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.