pub struct RuleBundleMetadata {
pub identity: RuleIdentity,
pub level: Option<Level>,
pub tags: Vec<String>,
pub description: Option<String>,
pub falsepositives: Vec<String>,
pub custom_attributes: Arc<HashMap<String, Value>>,
}Expand description
Everything needed to document one rule away from the engine that compiled
it: its identity, its severity and tags, and the three standard fields plus
rsigma.ads.* attributes an ADS document is assembled from.
Fields§
§identity: RuleIdentityThe rule’s kind, id, and title.
level: Option<Level>The rule’s level.
The rule’s tags (the ADS categorization carrier).
description: Option<String>The rule’s description (the ADS goal carrier).
falsepositives: Vec<String>The rule’s falsepositives (the ADS false-positives carrier).
custom_attributes: Arc<HashMap<String, Value>>The rule’s custom attributes, post-pipeline. Carries the six
rsigma.ads.* sections that have no standard Sigma field.
Trait Implementations§
Source§impl AdsCarriers for RuleBundleMetadata
impl AdsCarriers for RuleBundleMetadata
Source§fn ads_description(&self) -> Option<&str>
fn ads_description(&self) -> Option<&str>
The
description field (the goal carrier).The
tags field (the categorization carrier, filtered to attack.*).Source§fn ads_falsepositives(&self) -> &[String]
fn ads_falsepositives(&self) -> &[String]
The
falsepositives field (the false-positives carrier).Source§fn ads_custom_attribute(&self, key: &str) -> Option<AdsContent>
fn ads_custom_attribute(&self, key: &str) -> Option<AdsContent>
One
rsigma.ads.* custom attribute, already rendered to content.Source§fn ads_match_exemplar_count(&self) -> usize
fn ads_match_exemplar_count(&self) -> usize
Count of structurally valid
expect: match exemplars. Defaults to zero
so JSON-backed carriers that do not surface exemplars stay compiling.Source§impl Clone for RuleBundleMetadata
impl Clone for RuleBundleMetadata
Source§fn clone(&self) -> RuleBundleMetadata
fn clone(&self) -> RuleBundleMetadata
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 RuleBundleMetadata
impl Debug for RuleBundleMetadata
Source§impl PartialEq for RuleBundleMetadata
impl PartialEq for RuleBundleMetadata
Source§impl Serialize for RuleBundleMetadata
impl Serialize for RuleBundleMetadata
impl StructuralPartialEq for RuleBundleMetadata
Auto Trait Implementations§
impl Freeze for RuleBundleMetadata
impl RefUnwindSafe for RuleBundleMetadata
impl Send for RuleBundleMetadata
impl Sync for RuleBundleMetadata
impl Unpin for RuleBundleMetadata
impl UnsafeUnpin for RuleBundleMetadata
impl UnwindSafe for RuleBundleMetadata
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