Struct aws_sdk_codegurusecurity::types::builders::FilePathBuilder
source · #[non_exhaustive]pub struct FilePathBuilder { /* private fields */ }
Expand description
A builder for FilePath
.
Implementations§
source§impl FilePathBuilder
impl FilePathBuilder
sourcepub fn path(self, input: impl Into<String>) -> Self
pub fn path(self, input: impl Into<String>) -> Self
The path to the resource with the security vulnerability.
sourcepub fn set_path(self, input: Option<String>) -> Self
pub fn set_path(self, input: Option<String>) -> Self
The path to the resource with the security vulnerability.
sourcepub fn get_path(&self) -> &Option<String>
pub fn get_path(&self) -> &Option<String>
The path to the resource with the security vulnerability.
sourcepub fn start_line(self, input: i32) -> Self
pub fn start_line(self, input: i32) -> Self
The first line number of the code snippet where the security vulnerability appears in your code.
sourcepub fn set_start_line(self, input: Option<i32>) -> Self
pub fn set_start_line(self, input: Option<i32>) -> Self
The first line number of the code snippet where the security vulnerability appears in your code.
sourcepub fn get_start_line(&self) -> &Option<i32>
pub fn get_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, input: i32) -> Self
pub fn end_line(self, input: i32) -> Self
The last line number of the code snippet where the security vulnerability appears in your code.
sourcepub fn set_end_line(self, input: Option<i32>) -> Self
pub fn set_end_line(self, input: Option<i32>) -> Self
The last line number of the code snippet where the security vulnerability appears in your code.
sourcepub fn get_end_line(&self) -> &Option<i32>
pub fn get_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, input: CodeLine) -> Self
pub fn code_snippet(self, input: CodeLine) -> Self
Appends an item to code_snippet
.
To override the contents of this collection use set_code_snippet
.
A list of CodeLine
objects that describe where the security vulnerability appears in your code.
sourcepub fn set_code_snippet(self, input: Option<Vec<CodeLine>>) -> Self
pub fn set_code_snippet(self, input: Option<Vec<CodeLine>>) -> Self
A list of CodeLine
objects that describe where the security vulnerability appears in your code.
sourcepub fn get_code_snippet(&self) -> &Option<Vec<CodeLine>>
pub fn get_code_snippet(&self) -> &Option<Vec<CodeLine>>
A list of CodeLine
objects that describe where the security vulnerability appears in your code.
Trait Implementations§
source§impl Clone for FilePathBuilder
impl Clone for FilePathBuilder
source§fn clone(&self) -> FilePathBuilder
fn clone(&self) -> FilePathBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FilePathBuilder
impl Debug for FilePathBuilder
source§impl Default for FilePathBuilder
impl Default for FilePathBuilder
source§fn default() -> FilePathBuilder
fn default() -> FilePathBuilder
source§impl PartialEq for FilePathBuilder
impl PartialEq for FilePathBuilder
source§fn eq(&self, other: &FilePathBuilder) -> bool
fn eq(&self, other: &FilePathBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FilePathBuilder
Auto Trait Implementations§
impl Freeze for FilePathBuilder
impl RefUnwindSafe for FilePathBuilder
impl Send for FilePathBuilder
impl Sync for FilePathBuilder
impl Unpin for FilePathBuilder
impl UnwindSafe for FilePathBuilder
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