#[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
sourceimpl 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.
sourceimpl RecommendationSummary
impl RecommendationSummary
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RecommendationSummary
Trait Implementations
sourceimpl Clone for RecommendationSummary
impl Clone for RecommendationSummary
sourcefn clone(&self) -> RecommendationSummary
fn clone(&self) -> RecommendationSummary
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RecommendationSummary
impl Debug for RecommendationSummary
sourceimpl PartialEq<RecommendationSummary> for RecommendationSummary
impl PartialEq<RecommendationSummary> for RecommendationSummary
sourcefn eq(&self, other: &RecommendationSummary) -> bool
fn eq(&self, other: &RecommendationSummary) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RecommendationSummary) -> bool
fn ne(&self, other: &RecommendationSummary) -> bool
This method tests for !=.
impl StructuralPartialEq for RecommendationSummary
Auto Trait Implementations
impl RefUnwindSafe for RecommendationSummary
impl Send for RecommendationSummary
impl Sync for RecommendationSummary
impl Unpin for RecommendationSummary
impl UnwindSafe for RecommendationSummary
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more