pub struct FindingGroup { /* private fields */ }Expand description
What a finding is one of, where several detections cover one weakness between them.
Four detections reading an SSH server’s KEXINIT may each flag something different: a cipher, a host key, a key exchange, a MAC. They stay four findings, each separately true and separately fixed, but to a reader they are one sentence. A detection may declare its group and how the group reads as a whole; what a front end does with that is up to it, and nothing merges.
Both halves are author-chosen and untrusted, like the detection’s id and title.
Implementations§
Source§impl FindingGroup
impl FindingGroup
Sourcepub fn new(
id: impl Into<String>,
summary: impl Into<String>,
) -> Result<Self, FindingError>
pub fn new( id: impl Into<String>, summary: impl Into<String>, ) -> Result<Self, FindingError>
A group from its identity and how it reads, or
FindingError::EmptyGroup if either is blank.
The summary is a plural noun phrase a count can lead: weak SSH algorithms offered, so four read as 4 weak SSH algorithms offered. This is not checked.
Trait Implementations§
Source§impl Clone for FindingGroup
impl Clone for FindingGroup
Source§impl Debug for FindingGroup
impl Debug for FindingGroup
impl Eq for FindingGroup
Source§impl From<&FindingGroup> for FindingGroupRecord
impl From<&FindingGroup> for FindingGroupRecord
Source§fn from(group: &FindingGroup) -> Self
fn from(group: &FindingGroup) -> Self
Source§impl Hash for FindingGroup
impl Hash for FindingGroup
Source§impl PartialEq for FindingGroup
impl PartialEq for FindingGroup
impl StructuralPartialEq for FindingGroup
Auto Trait Implementations§
impl Freeze for FindingGroup
impl RefUnwindSafe for FindingGroup
impl Send for FindingGroup
impl Sync for FindingGroup
impl Unpin for FindingGroup
impl UnsafeUnpin for FindingGroup
impl UnwindSafe for FindingGroup
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,
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