#[non_exhaustive]pub struct FindingContext {
pub confidence: Option<Confidence>,
pub occurrences: Option<NonZeroU64>,
pub timestamps: Vec<Timestamp>,
pub external_refs: Vec<ExternalRef>,
pub tags: Vec<Cow<'static, str>>,
}Expand description
Optional behavioral / aggregation context for a finding. Disk findings leave this at its default; behavioral analyzers (memory, winevt, srum) populate it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.confidence: Option<Confidence>Heuristic confidence, when the finding is inferential rather than structural.
occurrences: Option<NonZeroU64>Number of underlying occurrences this finding aggregates (default 1).
timestamps: Vec<Timestamp>Timestamps anchoring the finding in time.
external_refs: Vec<ExternalRef>External references the finding is consistent with (MITRE ATT&CK, CVE …).
Analyzer-specific labels (filter flags, sub-classifications) without schema churn.
Trait Implementations§
Source§impl Clone for FindingContext
impl Clone for FindingContext
Source§fn clone(&self) -> FindingContext
fn clone(&self) -> FindingContext
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 FindingContext
impl Debug for FindingContext
Source§impl Default for FindingContext
impl Default for FindingContext
Source§fn default() -> FindingContext
fn default() -> FindingContext
Returns the “default value” for a type. Read more
Source§impl PartialEq for FindingContext
impl PartialEq for FindingContext
impl StructuralPartialEq for FindingContext
Auto Trait Implementations§
impl Freeze for FindingContext
impl RefUnwindSafe for FindingContext
impl Send for FindingContext
impl Sync for FindingContext
impl Unpin for FindingContext
impl UnsafeUnpin for FindingContext
impl UnwindSafe for FindingContext
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