Struct aws_sdk_codegurureviewer::model::RuleMetadata
source · [−]#[non_exhaustive]pub struct RuleMetadata {
pub rule_id: Option<String>,
pub rule_name: Option<String>,
pub short_description: Option<String>,
pub long_description: Option<String>,
pub rule_tags: Option<Vec<String>>,
}Expand description
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.
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.rule_id: Option<String>The ID of the rule.
rule_name: Option<String>The name of the rule.
short_description: Option<String>A short description of the rule.
long_description: Option<String>A long description of the rule.
Tags that are associated with the rule.
Implementations
sourceimpl RuleMetadata
impl RuleMetadata
sourcepub fn short_description(&self) -> Option<&str>
pub fn short_description(&self) -> Option<&str>
A short description of the rule.
sourcepub fn long_description(&self) -> Option<&str>
pub fn long_description(&self) -> Option<&str>
A long description of the rule.
Tags that are associated with the rule.
sourceimpl RuleMetadata
impl RuleMetadata
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RuleMetadata
Trait Implementations
sourceimpl Clone for RuleMetadata
impl Clone for RuleMetadata
sourcefn clone(&self) -> RuleMetadata
fn clone(&self) -> RuleMetadata
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 RuleMetadata
impl Debug for RuleMetadata
sourceimpl PartialEq<RuleMetadata> for RuleMetadata
impl PartialEq<RuleMetadata> for RuleMetadata
sourcefn eq(&self, other: &RuleMetadata) -> bool
fn eq(&self, other: &RuleMetadata) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RuleMetadata) -> bool
fn ne(&self, other: &RuleMetadata) -> bool
This method tests for !=.
impl StructuralPartialEq for RuleMetadata
Auto Trait Implementations
impl RefUnwindSafe for RuleMetadata
impl Send for RuleMetadata
impl Sync for RuleMetadata
impl Unpin for RuleMetadata
impl UnwindSafe for RuleMetadata
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