pub struct DraftReport {
pub rule_yaml: String,
pub fields: Vec<DraftFieldReport>,
pub exemplar_total: usize,
pub exemplar_matched: usize,
pub baseline_total: usize,
pub baseline_hits: Option<usize>,
pub baseline_hit_rate: Option<f64>,
pub warnings: Vec<String>,
}Expand description
The result of a draft run: the rule plus the evidence behind it.
Fields§
§rule_yaml: StringThe complete draft rule, standard Sigma YAML, parse- and lint-checked.
fields: Vec<DraftFieldReport>Profiled candidate fields, ranked (selected fields first).
exemplar_total: usizeNumber of exemplar events.
exemplar_matched: usizeExemplars the final draft matches (always equals exemplar_total; a
draft that cannot match every exemplar is an error, not a result).
baseline_total: usizeNumber of baseline events provided.
baseline_hits: Option<usize>Baseline events the draft matches (its estimated false-positive count), when the baseline evaluation ran.
baseline_hit_rate: Option<f64>baseline_hits / baseline_total (0.0-1.0), when computed.
warnings: Vec<String>Advisory notes: lint findings, relaxation drops, inference caveats.
Trait Implementations§
Source§impl Clone for DraftReport
impl Clone for DraftReport
Source§fn clone(&self) -> DraftReport
fn clone(&self) -> DraftReport
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 moreAuto Trait Implementations§
impl Freeze for DraftReport
impl RefUnwindSafe for DraftReport
impl Send for DraftReport
impl Sync for DraftReport
impl Unpin for DraftReport
impl UnsafeUnpin for DraftReport
impl UnwindSafe for DraftReport
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