pub struct FindingBuilder { /* private fields */ }Expand description
Builder for Finding — the only supported construction path.
Implementations§
Source§impl FindingBuilder
impl FindingBuilder
Sourcepub fn evidence(
self,
field: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn evidence( self, field: impl Into<String>, value: impl Into<String>, ) -> Self
Add an evidence row without a location.
Sourcepub fn evidence_at(
self,
field: impl Into<String>,
value: impl Into<String>,
location: Location,
) -> Self
pub fn evidence_at( self, field: impl Into<String>, value: impl Into<String>, location: Location, ) -> Self
Add an evidence row anchored at a location.
Sourcepub fn evidence_item(self, evidence: Evidence) -> Self
pub fn evidence_item(self, evidence: Evidence) -> Self
Add a fully-formed evidence row.
Sourcepub fn subject(self, subject: SubjectRef) -> Self
pub fn subject(self, subject: SubjectRef) -> Self
Add a non-disk subject the finding is about.
Sourcepub fn mitre(self, technique: impl Into<String>) -> Self
pub fn mitre(self, technique: impl Into<String>) -> Self
Add a MITRE ATT&CK technique the finding is consistent with.
Sourcepub fn external_ref(self, reference: ExternalRef) -> Self
pub fn external_ref(self, reference: ExternalRef) -> Self
Add an external reference (MITRE, CVE, vendor doc, case tag).
Sourcepub fn confidence(self, confidence: Confidence) -> Self
pub fn confidence(self, confidence: Confidence) -> Self
Attach a heuristic confidence.
Sourcepub fn occurrences(self, count: u64) -> Self
pub fn occurrences(self, count: u64) -> Self
Set the number of occurrences this finding aggregates (0 clears it).
Trait Implementations§
Source§impl Clone for FindingBuilder
impl Clone for FindingBuilder
Source§fn clone(&self) -> FindingBuilder
fn clone(&self) -> FindingBuilder
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 FindingBuilder
impl RefUnwindSafe for FindingBuilder
impl Send for FindingBuilder
impl Sync for FindingBuilder
impl Unpin for FindingBuilder
impl UnsafeUnpin for FindingBuilder
impl UnwindSafe for FindingBuilder
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