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