Struct aws_sdk_codegurusecurity::types::Vulnerability
source · #[non_exhaustive]pub struct Vulnerability {
pub reference_urls: Option<Vec<String>>,
pub related_vulnerabilities: Option<Vec<String>>,
pub id: Option<String>,
pub file_path: Option<FilePath>,
pub item_count: Option<i32>,
}
Expand description
Information about a security vulnerability that Amazon CodeGuru Security detected.
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.reference_urls: Option<Vec<String>>
One or more URL addresses that contain details about a vulnerability.
One or more vulnerabilities that are related to the vulnerability being described.
id: Option<String>
The identifier for the vulnerability.
file_path: Option<FilePath>
An object that describes the location of the detected security vulnerability in your code.
item_count: Option<i32>
The number of times the vulnerability appears in your code.
Implementations§
source§impl Vulnerability
impl Vulnerability
sourcepub fn reference_urls(&self) -> &[String]
pub fn reference_urls(&self) -> &[String]
One or more URL addresses that contain details about a vulnerability.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .reference_urls.is_none()
.
One or more vulnerabilities that are related to the vulnerability being described.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .related_vulnerabilities.is_none()
.
sourcepub fn file_path(&self) -> Option<&FilePath>
pub fn file_path(&self) -> Option<&FilePath>
An object that describes the location of the detected security vulnerability in your code.
sourcepub fn item_count(&self) -> Option<i32>
pub fn item_count(&self) -> Option<i32>
The number of times the vulnerability appears in your code.
source§impl Vulnerability
impl Vulnerability
sourcepub fn builder() -> VulnerabilityBuilder
pub fn builder() -> VulnerabilityBuilder
Creates a new builder-style object to manufacture Vulnerability
.
Trait Implementations§
source§impl Clone for Vulnerability
impl Clone for Vulnerability
source§fn clone(&self) -> Vulnerability
fn clone(&self) -> Vulnerability
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Vulnerability
impl Debug for Vulnerability
source§impl PartialEq for Vulnerability
impl PartialEq for Vulnerability
source§fn eq(&self, other: &Vulnerability) -> bool
fn eq(&self, other: &Vulnerability) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Vulnerability
Auto Trait Implementations§
impl Freeze for Vulnerability
impl RefUnwindSafe for Vulnerability
impl Send for Vulnerability
impl Sync for Vulnerability
impl Unpin for Vulnerability
impl UnwindSafe for Vulnerability
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