pub struct FindingRecord {Show 15 fields
pub detection: DetectionIdRecord,
pub title: String,
pub severity: String,
pub confidence: String,
pub class: String,
pub excerpt: Option<String>,
pub references: Vec<ReferenceRecord>,
pub remediation: Option<String>,
pub cpe: Option<String>,
pub cpes: Vec<String>,
pub subject: Option<String>,
pub build: Option<BuildRecord>,
pub advised_by: Option<DetectionIdRecord>,
pub exploited: Option<ExploitationRecord>,
pub group: Option<FindingGroupRecord>,
}Expand description
A finding, as a file holds it.
Fields§
§detection: DetectionIdRecordWhich detection produced it, to which version, from which bytes.
title: StringIts one-line title.
severity: StringHow bad it is if true, by wire name.
confidence: StringHow sure it is true, by wire name.
class: StringThe intrusiveness the detection ran under, by wire name.
excerpt: Option<String>The bytes that justify it, if any.
references: Vec<ReferenceRecord>Its external references, in sorted order.
remediation: Option<String>Remediation advice, if any.
Omitted when absent, as in the report; export::conformance holds the two to
the same spelling.
cpe: Option<String>The lowest of cpes, for readers that expect one. Omitted when
absent. Read back beside cpes.
cpes: Vec<String>Every platform identifier a correlation drew it from, ascending.
Omitted when empty and defaulted on read.
subject: Option<String>What the claim is about, where the detection named it.
Omitted when absent.
build: Option<BuildRecord>The distribution build a correlation judged. Omitted when absent.
advised_by: Option<DetectionIdRecord>The distributor’s advisory data a correlation consulted. Omitted when absent.
exploited: Option<ExploitationRecord>Which of the vulnerabilities it cites are known to be exploited, and whose list says so. Omitted when absent.
group: Option<FindingGroupRecord>The group of detections this finding’s own detection covers a weakness with, where it declared one.
Omitted when absent.
Implementations§
Source§impl FindingRecord
impl FindingRecord
Sourcepub fn rebuild(&self) -> Option<Finding>
pub fn rebuild(&self) -> Option<Finding>
Rebuilds the finding, or None if it names no detection or has no
title, the two things a finding cannot be without.
Everything else reads downward: an unknown severity, confidence or class reads as the least it could claim, and an unreadable reference is dropped while the finding is kept.
Trait Implementations§
Source§impl Clone for FindingRecord
impl Clone for FindingRecord
Source§impl Debug for FindingRecord
impl Debug for FindingRecord
Source§impl<'de> Deserialize<'de> for FindingRecord
impl<'de> Deserialize<'de> for FindingRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for FindingRecord
Source§impl From<&Finding> for FindingRecord
impl From<&Finding> for FindingRecord
Source§impl PartialEq for FindingRecord
impl PartialEq for FindingRecord
Source§impl Serialize for FindingRecord
impl Serialize for FindingRecord
impl StructuralPartialEq for FindingRecord
Auto Trait Implementations§
impl Freeze for FindingRecord
impl RefUnwindSafe for FindingRecord
impl Send for FindingRecord
impl Sync for FindingRecord
impl Unpin for FindingRecord
impl UnsafeUnpin for FindingRecord
impl UnwindSafe for FindingRecord
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more