#[non_exhaustive]pub struct RecommendationSummary {
pub file_path: Option<String>,
pub recommendation_id: Option<String>,
pub start_line: Option<i32>,
pub end_line: Option<i32>,
pub description: Option<String>,
pub recommendation_category: Option<RecommendationCategory>,
pub rule_metadata: Option<RuleMetadata>,
pub severity: Option<Severity>,
}
Expand description
Information about recommendations.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.file_path: Option<String>
Name of the file on which a recommendation is provided.
recommendation_id: Option<String>
The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
start_line: Option<i32>
Start line from where the recommendation is applicable in the source commit or source branch.
end_line: 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.
description: Option<String>
A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line and the end line.
recommendation_category: Option<RecommendationCategory>
The type of a recommendation.
rule_metadata: 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.
severity: Option<Severity>
The severity of the issue in the code that generated this recommendation.
Implementations§
source§impl RecommendationSummary
impl RecommendationSummary
sourcepub fn file_path(&self) -> Option<&str>
pub fn file_path(&self) -> Option<&str>
Name of the file on which a recommendation is provided.
sourcepub fn recommendation_id(&self) -> Option<&str>
pub fn recommendation_id(&self) -> Option<&str>
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) -> Option<i32>
pub fn 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) -> Option<i32>
pub fn 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) -> Option<&str>
pub fn description(&self) -> Option<&str>
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) -> Option<&RecommendationCategory>
pub fn recommendation_category(&self) -> Option<&RecommendationCategory>
The type of a recommendation.
sourcepub fn rule_metadata(&self) -> Option<&RuleMetadata>
pub fn 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.
source§impl RecommendationSummary
impl RecommendationSummary
sourcepub fn builder() -> RecommendationSummaryBuilder
pub fn builder() -> RecommendationSummaryBuilder
Creates a new builder-style object to manufacture RecommendationSummary
.
Trait Implementations§
source§impl Clone for RecommendationSummary
impl Clone for RecommendationSummary
source§fn clone(&self) -> RecommendationSummary
fn clone(&self) -> RecommendationSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecommendationSummary
impl Debug for RecommendationSummary
source§impl PartialEq for RecommendationSummary
impl PartialEq for RecommendationSummary
source§fn eq(&self, other: &RecommendationSummary) -> bool
fn eq(&self, other: &RecommendationSummary) -> bool
self
and other
values to be equal, and is used
by ==
.