Struct aws_sdk_securityhub::types::Cvss
source · #[non_exhaustive]pub struct Cvss {
pub version: Option<String>,
pub base_score: Option<f64>,
pub base_vector: Option<String>,
pub source: Option<String>,
pub adjustments: Option<Vec<Adjustment>>,
}
Expand description
CVSS scores from the advisory related to the vulnerability.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.version: Option<String>
The version of CVSS for the CVSS score.
base_score: Option<f64>
The base CVSS score.
base_vector: Option<String>
The base scoring vector for the CVSS score.
source: Option<String>
The origin of the original CVSS score and vector.
adjustments: Option<Vec<Adjustment>>
Adjustments to the CVSS metrics.
Implementations§
source§impl Cvss
impl Cvss
sourcepub fn base_score(&self) -> Option<f64>
pub fn base_score(&self) -> Option<f64>
The base CVSS score.
sourcepub fn base_vector(&self) -> Option<&str>
pub fn base_vector(&self) -> Option<&str>
The base scoring vector for the CVSS score.
sourcepub fn adjustments(&self) -> &[Adjustment]
pub fn adjustments(&self) -> &[Adjustment]
Adjustments to the CVSS metrics.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .adjustments.is_none()
.
Trait Implementations§
source§impl PartialEq for Cvss
impl PartialEq for Cvss
impl StructuralPartialEq for Cvss
Auto Trait Implementations§
impl Freeze for Cvss
impl RefUnwindSafe for Cvss
impl Send for Cvss
impl Sync for Cvss
impl Unpin for Cvss
impl UnwindSafe for Cvss
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
Mutably borrows from an owned value. Read more
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 moreCreates a shared type from an unshared type.