#[non_exhaustive]pub struct FindingProviderFieldsBuilder { /* private fields */ }
Expand description
A builder for FindingProviderFields
.
Implementations§
source§impl FindingProviderFieldsBuilder
impl FindingProviderFieldsBuilder
sourcepub fn confidence(self, input: i32) -> Self
pub fn confidence(self, input: i32) -> Self
A finding's confidence. Confidence is defined as the likelihood that a finding accurately identifies the behavior or issue that it was intended to identify.
Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 means 100 percent confidence.
sourcepub fn set_confidence(self, input: Option<i32>) -> Self
pub fn set_confidence(self, input: Option<i32>) -> Self
A finding's confidence. Confidence is defined as the likelihood that a finding accurately identifies the behavior or issue that it was intended to identify.
Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 means 100 percent confidence.
sourcepub fn get_confidence(&self) -> &Option<i32>
pub fn get_confidence(&self) -> &Option<i32>
A finding's confidence. Confidence is defined as the likelihood that a finding accurately identifies the behavior or issue that it was intended to identify.
Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 means 100 percent confidence.
sourcepub fn criticality(self, input: i32) -> Self
pub fn criticality(self, input: i32) -> Self
The level of importance assigned to the resources associated with the finding.
A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for the most critical resources.
sourcepub fn set_criticality(self, input: Option<i32>) -> Self
pub fn set_criticality(self, input: Option<i32>) -> Self
The level of importance assigned to the resources associated with the finding.
A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for the most critical resources.
sourcepub fn get_criticality(&self) -> &Option<i32>
pub fn get_criticality(&self) -> &Option<i32>
The level of importance assigned to the resources associated with the finding.
A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for the most critical resources.
Appends an item to related_findings
.
To override the contents of this collection use set_related_findings
.
A list of findings that are related to the current finding.
A list of findings that are related to the current finding.
A list of findings that are related to the current finding.
sourcepub fn severity(self, input: FindingProviderSeverity) -> Self
pub fn severity(self, input: FindingProviderSeverity) -> Self
The severity of a finding.
sourcepub fn set_severity(self, input: Option<FindingProviderSeverity>) -> Self
pub fn set_severity(self, input: Option<FindingProviderSeverity>) -> Self
The severity of a finding.
sourcepub fn get_severity(&self) -> &Option<FindingProviderSeverity>
pub fn get_severity(&self) -> &Option<FindingProviderSeverity>
The severity of a finding.
sourcepub fn types(self, input: impl Into<String>) -> Self
pub fn types(self, input: impl Into<String>) -> Self
Appends an item to types
.
To override the contents of this collection use set_types
.
One or more finding types in the format of namespace/category/classifier
that classify a finding.
Valid namespace values are: Software and Configuration Checks | TTPs | Effects | Unusual Behaviors | Sensitive Data Identifications
sourcepub fn set_types(self, input: Option<Vec<String>>) -> Self
pub fn set_types(self, input: Option<Vec<String>>) -> Self
One or more finding types in the format of namespace/category/classifier
that classify a finding.
Valid namespace values are: Software and Configuration Checks | TTPs | Effects | Unusual Behaviors | Sensitive Data Identifications
sourcepub fn get_types(&self) -> &Option<Vec<String>>
pub fn get_types(&self) -> &Option<Vec<String>>
One or more finding types in the format of namespace/category/classifier
that classify a finding.
Valid namespace values are: Software and Configuration Checks | TTPs | Effects | Unusual Behaviors | Sensitive Data Identifications
sourcepub fn build(self) -> FindingProviderFields
pub fn build(self) -> FindingProviderFields
Consumes the builder and constructs a FindingProviderFields
.
Trait Implementations§
source§impl Clone for FindingProviderFieldsBuilder
impl Clone for FindingProviderFieldsBuilder
source§fn clone(&self) -> FindingProviderFieldsBuilder
fn clone(&self) -> FindingProviderFieldsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FindingProviderFieldsBuilder
impl Debug for FindingProviderFieldsBuilder
source§impl Default for FindingProviderFieldsBuilder
impl Default for FindingProviderFieldsBuilder
source§fn default() -> FindingProviderFieldsBuilder
fn default() -> FindingProviderFieldsBuilder
source§impl PartialEq for FindingProviderFieldsBuilder
impl PartialEq for FindingProviderFieldsBuilder
source§fn eq(&self, other: &FindingProviderFieldsBuilder) -> bool
fn eq(&self, other: &FindingProviderFieldsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FindingProviderFieldsBuilder
Auto Trait Implementations§
impl Freeze for FindingProviderFieldsBuilder
impl RefUnwindSafe for FindingProviderFieldsBuilder
impl Send for FindingProviderFieldsBuilder
impl Sync for FindingProviderFieldsBuilder
impl Unpin for FindingProviderFieldsBuilder
impl UnwindSafe for FindingProviderFieldsBuilder
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
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