Struct aws_sdk_codegurureviewer::types::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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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§
source§impl 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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .rule_tags.is_none()
.
source§impl RuleMetadata
impl RuleMetadata
sourcepub fn builder() -> RuleMetadataBuilder
pub fn builder() -> RuleMetadataBuilder
Creates a new builder-style object to manufacture RuleMetadata
.
Trait Implementations§
source§impl Clone for RuleMetadata
impl Clone for RuleMetadata
source§fn clone(&self) -> RuleMetadata
fn clone(&self) -> RuleMetadata
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RuleMetadata
impl Debug for RuleMetadata
source§impl PartialEq for RuleMetadata
impl PartialEq for RuleMetadata
source§fn 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 ==
.impl StructuralPartialEq for RuleMetadata
Auto Trait Implementations§
impl Freeze for RuleMetadata
impl RefUnwindSafe for RuleMetadata
impl Send for RuleMetadata
impl Sync for RuleMetadata
impl Unpin for RuleMetadata
impl UnwindSafe for RuleMetadata
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.