#[non_exhaustive]pub struct RecommendationSummaryBuilder { /* private fields */ }
Expand description
A builder for RecommendationSummary
.
Implementations§
source§impl RecommendationSummaryBuilder
impl RecommendationSummaryBuilder
sourcepub fn file_path(self, input: impl Into<String>) -> Self
pub fn file_path(self, input: impl Into<String>) -> Self
Name of the file on which a recommendation is provided.
sourcepub fn set_file_path(self, input: Option<String>) -> Self
pub fn set_file_path(self, input: Option<String>) -> Self
Name of the file on which a recommendation is provided.
sourcepub fn get_file_path(&self) -> &Option<String>
pub fn get_file_path(&self) -> &Option<String>
Name of the file on which a recommendation is provided.
sourcepub fn recommendation_id(self, input: impl Into<String>) -> Self
pub fn recommendation_id(self, input: impl Into<String>) -> Self
The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
sourcepub fn set_recommendation_id(self, input: Option<String>) -> Self
pub fn set_recommendation_id(self, input: Option<String>) -> Self
The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
sourcepub fn get_recommendation_id(&self) -> &Option<String>
pub fn get_recommendation_id(&self) -> &Option<String>
The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
sourcepub fn start_line(self, input: i32) -> Self
pub fn start_line(self, input: i32) -> Self
Start line from where the recommendation is applicable in the source commit or source branch.
sourcepub fn set_start_line(self, input: Option<i32>) -> Self
pub fn set_start_line(self, input: Option<i32>) -> Self
Start line from where the recommendation is applicable in the source commit or source branch.
sourcepub fn get_start_line(&self) -> &Option<i32>
pub fn get_start_line(&self) -> &Option<i32>
Start line from where the recommendation is applicable in the source commit or source branch.
sourcepub fn end_line(self, input: i32) -> Self
pub fn end_line(self, input: i32) -> Self
Last line where the recommendation is applicable in the source commit or source branch. For a single line comment the start line and end line values are the same.
sourcepub fn set_end_line(self, input: Option<i32>) -> Self
pub fn set_end_line(self, input: Option<i32>) -> Self
Last line where the recommendation is applicable in the source commit or source branch. For a single line comment the start line and end line values are the same.
sourcepub fn get_end_line(&self) -> &Option<i32>
pub fn get_end_line(&self) -> &Option<i32>
Last line where the recommendation is applicable in the source commit or source branch. For a single line comment the start line and end line values are the same.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line and the end line.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line and the end line.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line and the end line.
sourcepub fn recommendation_category(self, input: RecommendationCategory) -> Self
pub fn recommendation_category(self, input: RecommendationCategory) -> Self
The type of a recommendation.
sourcepub fn set_recommendation_category(
self,
input: Option<RecommendationCategory>,
) -> Self
pub fn set_recommendation_category( self, input: Option<RecommendationCategory>, ) -> Self
The type of a recommendation.
sourcepub fn get_recommendation_category(&self) -> &Option<RecommendationCategory>
pub fn get_recommendation_category(&self) -> &Option<RecommendationCategory>
The type of a recommendation.
sourcepub fn rule_metadata(self, input: RuleMetadata) -> Self
pub fn rule_metadata(self, input: RuleMetadata) -> Self
Metadata about a rule. Rule metadata includes an ID, a name, a list of tags, and a short and long description. CodeGuru Reviewer uses rules to analyze code. A rule's recommendation is included in analysis results if code is detected that violates the rule.
sourcepub fn set_rule_metadata(self, input: Option<RuleMetadata>) -> Self
pub fn set_rule_metadata(self, input: Option<RuleMetadata>) -> Self
Metadata about a rule. Rule metadata includes an ID, a name, a list of tags, and a short and long description. CodeGuru Reviewer uses rules to analyze code. A rule's recommendation is included in analysis results if code is detected that violates the rule.
sourcepub fn get_rule_metadata(&self) -> &Option<RuleMetadata>
pub fn get_rule_metadata(&self) -> &Option<RuleMetadata>
Metadata about a rule. Rule metadata includes an ID, a name, a list of tags, and a short and long description. CodeGuru Reviewer uses rules to analyze code. A rule's recommendation is included in analysis results if code is detected that violates the rule.
sourcepub fn severity(self, input: Severity) -> Self
pub fn severity(self, input: Severity) -> Self
The severity of the issue in the code that generated this recommendation.
sourcepub fn set_severity(self, input: Option<Severity>) -> Self
pub fn set_severity(self, input: Option<Severity>) -> Self
The severity of the issue in the code that generated this recommendation.
sourcepub fn get_severity(&self) -> &Option<Severity>
pub fn get_severity(&self) -> &Option<Severity>
The severity of the issue in the code that generated this recommendation.
sourcepub fn build(self) -> RecommendationSummary
pub fn build(self) -> RecommendationSummary
Consumes the builder and constructs a RecommendationSummary
.
Trait Implementations§
source§impl Clone for RecommendationSummaryBuilder
impl Clone for RecommendationSummaryBuilder
source§fn clone(&self) -> RecommendationSummaryBuilder
fn clone(&self) -> RecommendationSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecommendationSummaryBuilder
impl Debug for RecommendationSummaryBuilder
source§impl Default for RecommendationSummaryBuilder
impl Default for RecommendationSummaryBuilder
source§fn default() -> RecommendationSummaryBuilder
fn default() -> RecommendationSummaryBuilder
source§impl PartialEq for RecommendationSummaryBuilder
impl PartialEq for RecommendationSummaryBuilder
source§fn eq(&self, other: &RecommendationSummaryBuilder) -> bool
fn eq(&self, other: &RecommendationSummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RecommendationSummaryBuilder
Auto Trait Implementations§
impl Freeze for RecommendationSummaryBuilder
impl RefUnwindSafe for RecommendationSummaryBuilder
impl Send for RecommendationSummaryBuilder
impl Sync for RecommendationSummaryBuilder
impl Unpin for RecommendationSummaryBuilder
impl UnwindSafe for RecommendationSummaryBuilder
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