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) -> &[CodeLine]
pub fn code_snippet(&self) -> &[CodeLine]
A list of CodeLine
objects that describe where the security vulnerability appears in your code.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .code_snippet.is_none()
.
Trait Implementations§
source§impl PartialEq for FilePath
impl PartialEq for FilePath
impl StructuralPartialEq for FilePath
Auto Trait Implementations§
impl Freeze for FilePath
impl RefUnwindSafe for FilePath
impl Send for FilePath
impl Sync for FilePath
impl Unpin for FilePath
impl UnwindSafe for FilePath
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