Struct aws_sdk_codegurusecurity::types::FilePath
source · #[non_exhaustive]pub struct FilePath {
pub name: Option<String>,
pub path: Option<String>,
pub start_line: Option<i32>,
pub end_line: Option<i32>,
pub code_snippet: Option<Vec<CodeLine>>,
}
Expand description
Information about the location of security vulnerabilities that Amazon CodeGuru Security detected in your code.
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.name: Option<String>
The name of the file.
path: Option<String>
The path to the resource with the security vulnerability.
start_line: Option<i32>
The first line number of the code snippet where the security vulnerability appears in your code.
end_line: Option<i32>
The last line number of the code snippet where the security vulnerability appears in your code.
code_snippet: Option<Vec<CodeLine>>
A list of CodeLine
objects that describe where the security vulnerability appears in your code.
Implementations§
source§impl FilePath
impl FilePath
sourcepub fn start_line(&self) -> Option<i32>
pub fn start_line(&self) -> Option<i32>
The first line number of the code snippet where the security vulnerability appears in your code.
sourcepub fn end_line(&self) -> Option<i32>
pub fn end_line(&self) -> Option<i32>
The last line number of the code snippet where the security vulnerability appears in your code.
sourcepub fn code_snippet(&self) -> Option<&[CodeLine]>
pub fn code_snippet(&self) -> Option<&[CodeLine]>
A list of CodeLine
objects that describe where the security vulnerability appears in your code.