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 ==
.