#[non_exhaustive]pub struct VulnerabilityBuilder { /* private fields */ }
Expand description
A builder for Vulnerability
.
Implementations§
source§impl VulnerabilityBuilder
impl VulnerabilityBuilder
sourcepub fn reference_urls(self, input: impl Into<String>) -> Self
pub fn reference_urls(self, input: impl Into<String>) -> Self
Appends an item to reference_urls
.
To override the contents of this collection use set_reference_urls
.
One or more URL addresses that contain details about a vulnerability.
sourcepub fn set_reference_urls(self, input: Option<Vec<String>>) -> Self
pub fn set_reference_urls(self, input: Option<Vec<String>>) -> Self
One or more URL addresses that contain details about a vulnerability.
sourcepub fn get_reference_urls(&self) -> &Option<Vec<String>>
pub fn get_reference_urls(&self) -> &Option<Vec<String>>
One or more URL addresses that contain details about a vulnerability.
Appends an item to related_vulnerabilities
.
To override the contents of this collection use set_related_vulnerabilities
.
One or more vulnerabilities that are related to the vulnerability being described.
One or more vulnerabilities that are related to the vulnerability being described.
One or more vulnerabilities that are related to the vulnerability being described.
sourcepub fn file_path(self, input: FilePath) -> Self
pub fn file_path(self, input: FilePath) -> Self
An object that describes the location of the detected security vulnerability in your code.
sourcepub fn set_file_path(self, input: Option<FilePath>) -> Self
pub fn set_file_path(self, input: Option<FilePath>) -> Self
An object that describes the location of the detected security vulnerability in your code.
sourcepub fn get_file_path(&self) -> &Option<FilePath>
pub fn get_file_path(&self) -> &Option<FilePath>
An object that describes the location of the detected security vulnerability in your code.
sourcepub fn item_count(self, input: i32) -> Self
👎Deprecated: This shape is not used.
pub fn item_count(self, input: i32) -> Self
The number of times the vulnerability appears in your code.
sourcepub fn set_item_count(self, input: Option<i32>) -> Self
👎Deprecated: This shape is not used.
pub fn set_item_count(self, input: Option<i32>) -> Self
The number of times the vulnerability appears in your code.
sourcepub fn get_item_count(&self) -> &Option<i32>
👎Deprecated: This shape is not used.
pub fn get_item_count(&self) -> &Option<i32>
The number of times the vulnerability appears in your code.
sourcepub fn build(self) -> Vulnerability
pub fn build(self) -> Vulnerability
Consumes the builder and constructs a Vulnerability
.
Trait Implementations§
source§impl Clone for VulnerabilityBuilder
impl Clone for VulnerabilityBuilder
source§fn clone(&self) -> VulnerabilityBuilder
fn clone(&self) -> VulnerabilityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VulnerabilityBuilder
impl Debug for VulnerabilityBuilder
source§impl Default for VulnerabilityBuilder
impl Default for VulnerabilityBuilder
source§fn default() -> VulnerabilityBuilder
fn default() -> VulnerabilityBuilder
source§impl PartialEq for VulnerabilityBuilder
impl PartialEq for VulnerabilityBuilder
source§fn eq(&self, other: &VulnerabilityBuilder) -> bool
fn eq(&self, other: &VulnerabilityBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VulnerabilityBuilder
Auto Trait Implementations§
impl Freeze for VulnerabilityBuilder
impl RefUnwindSafe for VulnerabilityBuilder
impl Send for VulnerabilityBuilder
impl Sync for VulnerabilityBuilder
impl Unpin for VulnerabilityBuilder
impl UnwindSafe for VulnerabilityBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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