#[non_exhaustive]pub struct RecommendationBuilder { /* private fields */ }
Expand description
A builder for Recommendation
.
Implementations§
source§impl RecommendationBuilder
impl RecommendationBuilder
sourcepub fn text(self, input: impl Into<String>) -> Self
pub fn text(self, input: impl Into<String>) -> Self
The recommended course of action to remediate the finding.
sourcepub fn set_text(self, input: Option<String>) -> Self
pub fn set_text(self, input: Option<String>) -> Self
The recommended course of action to remediate the finding.
sourcepub fn get_text(&self) -> &Option<String>
pub fn get_text(&self) -> &Option<String>
The recommended course of action to remediate the finding.
sourcepub fn url(self, input: impl Into<String>) -> Self
pub fn url(self, input: impl Into<String>) -> Self
The URL address to the recommendation for remediating the finding.
sourcepub fn set_url(self, input: Option<String>) -> Self
pub fn set_url(self, input: Option<String>) -> Self
The URL address to the recommendation for remediating the finding.
sourcepub fn get_url(&self) -> &Option<String>
pub fn get_url(&self) -> &Option<String>
The URL address to the recommendation for remediating the finding.
sourcepub fn build(self) -> Recommendation
pub fn build(self) -> Recommendation
Consumes the builder and constructs a Recommendation
.
Trait Implementations§
source§impl Clone for RecommendationBuilder
impl Clone for RecommendationBuilder
source§fn clone(&self) -> RecommendationBuilder
fn clone(&self) -> RecommendationBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RecommendationBuilder
impl Debug for RecommendationBuilder
source§impl Default for RecommendationBuilder
impl Default for RecommendationBuilder
source§fn default() -> RecommendationBuilder
fn default() -> RecommendationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RecommendationBuilder
impl PartialEq for RecommendationBuilder
source§fn eq(&self, other: &RecommendationBuilder) -> bool
fn eq(&self, other: &RecommendationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RecommendationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for RecommendationBuilder
impl Send for RecommendationBuilder
impl Sync for RecommendationBuilder
impl Unpin for RecommendationBuilder
impl UnwindSafe for RecommendationBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.