#[non_exhaustive]pub struct CodeVulnerabilitiesFilePathBuilder { /* private fields */ }
Expand description
A builder for CodeVulnerabilitiesFilePath
.
Implementations§
source§impl CodeVulnerabilitiesFilePathBuilder
impl CodeVulnerabilitiesFilePathBuilder
sourcepub fn end_line(self, input: i32) -> Self
pub fn end_line(self, input: i32) -> Self
The line number of the last line of code in which the vulnerability is located.
sourcepub fn set_end_line(self, input: Option<i32>) -> Self
pub fn set_end_line(self, input: Option<i32>) -> Self
The line number of the last line of code in which the vulnerability is located.
sourcepub fn get_end_line(&self) -> &Option<i32>
pub fn get_end_line(&self) -> &Option<i32>
The line number of the last line of code in which the vulnerability is located.
sourcepub fn file_name(self, input: impl Into<String>) -> Self
pub fn file_name(self, input: impl Into<String>) -> Self
The name of the file in which the code vulnerability is located.
sourcepub fn set_file_name(self, input: Option<String>) -> Self
pub fn set_file_name(self, input: Option<String>) -> Self
The name of the file in which the code vulnerability is located.
sourcepub fn get_file_name(&self) -> &Option<String>
pub fn get_file_name(&self) -> &Option<String>
The name of the file in which the code vulnerability is located.
sourcepub fn file_path(self, input: impl Into<String>) -> Self
pub fn file_path(self, input: impl Into<String>) -> Self
The file path to the code in which the vulnerability is located.
sourcepub fn set_file_path(self, input: Option<String>) -> Self
pub fn set_file_path(self, input: Option<String>) -> Self
The file path to the code in which the vulnerability is located.
sourcepub fn get_file_path(&self) -> &Option<String>
pub fn get_file_path(&self) -> &Option<String>
The file path to the code in which the vulnerability is located.
sourcepub fn start_line(self, input: i32) -> Self
pub fn start_line(self, input: i32) -> Self
The line number of the first line of code in which the vulnerability is located.
sourcepub fn set_start_line(self, input: Option<i32>) -> Self
pub fn set_start_line(self, input: Option<i32>) -> Self
The line number of the first line of code in which the vulnerability is located.
sourcepub fn get_start_line(&self) -> &Option<i32>
pub fn get_start_line(&self) -> &Option<i32>
The line number of the first line of code in which the vulnerability is located.
sourcepub fn build(self) -> CodeVulnerabilitiesFilePath
pub fn build(self) -> CodeVulnerabilitiesFilePath
Consumes the builder and constructs a CodeVulnerabilitiesFilePath
.
Trait Implementations§
source§impl Clone for CodeVulnerabilitiesFilePathBuilder
impl Clone for CodeVulnerabilitiesFilePathBuilder
source§fn clone(&self) -> CodeVulnerabilitiesFilePathBuilder
fn clone(&self) -> CodeVulnerabilitiesFilePathBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CodeVulnerabilitiesFilePathBuilder
impl Default for CodeVulnerabilitiesFilePathBuilder
source§fn default() -> CodeVulnerabilitiesFilePathBuilder
fn default() -> CodeVulnerabilitiesFilePathBuilder
source§impl PartialEq for CodeVulnerabilitiesFilePathBuilder
impl PartialEq for CodeVulnerabilitiesFilePathBuilder
source§fn eq(&self, other: &CodeVulnerabilitiesFilePathBuilder) -> bool
fn eq(&self, other: &CodeVulnerabilitiesFilePathBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CodeVulnerabilitiesFilePathBuilder
Auto Trait Implementations§
impl Freeze for CodeVulnerabilitiesFilePathBuilder
impl RefUnwindSafe for CodeVulnerabilitiesFilePathBuilder
impl Send for CodeVulnerabilitiesFilePathBuilder
impl Sync for CodeVulnerabilitiesFilePathBuilder
impl Unpin for CodeVulnerabilitiesFilePathBuilder
impl UnwindSafe for CodeVulnerabilitiesFilePathBuilder
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