pub struct AdsDocument {
pub sections: Vec<AdsSectionStatus>,
}Expand description
The assembled ADS document for one rule: every section, its presence, and its content.
Fields§
§sections: Vec<AdsSectionStatus>One entry per ADS section, in canonical order.
Implementations§
Source§impl AdsDocument
impl AdsDocument
Sourcepub fn from_rule(rule: &SigmaRule) -> Self
pub fn from_rule(rule: &SigmaRule) -> Self
Assemble the ADS document for a rule from its reused fields and
rsigma.ads.* sections.
Sourcepub fn from_carriers<C: AdsCarriers + ?Sized>(carriers: &C) -> Self
pub fn from_carriers<C: AdsCarriers + ?Sized>(carriers: &C) -> Self
Assemble the ADS document from any AdsCarriers source, so a compiled
rule produces the same nine-section document as a parsed one.
Sourcepub fn missing_required(&self) -> Vec<&'static str>
pub fn missing_required(&self) -> Vec<&'static str>
The ids of required sections missing from the rule.
Trait Implementations§
Source§impl Clone for AdsDocument
impl Clone for AdsDocument
Source§fn clone(&self) -> AdsDocument
fn clone(&self) -> AdsDocument
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 AdsDocument
impl Debug for AdsDocument
Auto Trait Implementations§
impl Freeze for AdsDocument
impl RefUnwindSafe for AdsDocument
impl Send for AdsDocument
impl Sync for AdsDocument
impl Unpin for AdsDocument
impl UnsafeUnpin for AdsDocument
impl UnwindSafe for AdsDocument
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