pub struct ExploitationRecord {
pub by: DetectionIdRecord,
pub cves: Vec<String>,
}Expand description
Which of a finding’s vulnerabilities are known to be exploited, as a journal records it.
Fields§
§by: DetectionIdRecordThe list that names them.
cves: Vec<String>The CVE identifiers it names, in the order the finding cites them.
Implementations§
Source§impl ExploitationRecord
impl ExploitationRecord
Sourcepub fn rebuild(&self) -> Option<Exploitation>
pub fn rebuild(&self) -> Option<Exploitation>
Rebuilds the marking, or None where the list names nothing or none
of the identifiers is a CVE’s. A finding whose marking does not rebuild
is kept without it.
Trait Implementations§
Source§impl Clone for ExploitationRecord
impl Clone for ExploitationRecord
Source§impl Debug for ExploitationRecord
impl Debug for ExploitationRecord
Source§impl<'de> Deserialize<'de> for ExploitationRecord
impl<'de> Deserialize<'de> for ExploitationRecord
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExploitationRecord
Source§impl From<&Exploitation> for ExploitationRecord
impl From<&Exploitation> for ExploitationRecord
Source§fn from(exploitation: &Exploitation) -> Self
fn from(exploitation: &Exploitation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExploitationRecord
impl PartialEq for ExploitationRecord
Source§impl Serialize for ExploitationRecord
impl Serialize for ExploitationRecord
impl StructuralPartialEq for ExploitationRecord
Auto Trait Implementations§
impl Freeze for ExploitationRecord
impl RefUnwindSafe for ExploitationRecord
impl Send for ExploitationRecord
impl Sync for ExploitationRecord
impl Unpin for ExploitationRecord
impl UnsafeUnpin for ExploitationRecord
impl UnwindSafe for ExploitationRecord
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
Mutably borrows from an owned value. Read more
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
Compare self to
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> ⓘ
Converts
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> ⓘ
Converts
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