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