#[non_exhaustive]pub struct FindingProviderSeverity {
pub label: Option<SeverityLabel>,
pub original: Option<String>,
}Expand description
The severity assigned to a finding by the finding provider. This object may include one or more of the following attributes:
-
Label -
Normalized -
Original -
Product
If a BatchImportFindings request for a new finding only provides Label or only provides Normalized, Security Hub automatically populates the value of the other field.
The Normalized and Product attributes are included in the FindingProviderSeverity structure to preserve the historical information associated with the finding, even if the top-level Severity object is later modified using the BatchUpdateFindings operation.
If the top-level Finding.Severity object is present, but Finding.FindingProviderFields isn't present, Security Hub creates the FindingProviderFields.Severity object and copies the entire Finding.Severity object into it. This ensures that the original, provider-supplied details are retained within the FindingProviderFields.Severity object, even if the top-level Severity object is overwritten.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.label: Option<SeverityLabel>The severity label assigned to the finding by the finding provider.
original: Option<String>The finding provider's original value for the severity.
Length Constraints: Minimum length of 1. Maximum length of 64.
Implementations§
source§impl FindingProviderSeverity
impl FindingProviderSeverity
sourcepub fn builder() -> FindingProviderSeverityBuilder
pub fn builder() -> FindingProviderSeverityBuilder
Creates a new builder-style object to manufacture FindingProviderSeverity.
Trait Implementations§
source§impl Clone for FindingProviderSeverity
impl Clone for FindingProviderSeverity
source§fn clone(&self) -> FindingProviderSeverity
fn clone(&self) -> FindingProviderSeverity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for FindingProviderSeverity
impl Debug for FindingProviderSeverity
source§impl PartialEq for FindingProviderSeverity
impl PartialEq for FindingProviderSeverity
source§fn eq(&self, other: &FindingProviderSeverity) -> bool
fn eq(&self, other: &FindingProviderSeverity) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for FindingProviderSeverity
Auto Trait Implementations§
impl Freeze for FindingProviderSeverity
impl RefUnwindSafe for FindingProviderSeverity
impl Send for FindingProviderSeverity
impl Sync for FindingProviderSeverity
impl Unpin for FindingProviderSeverity
impl UnwindSafe for FindingProviderSeverity
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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