#[non_exhaustive]pub struct RuleMetadataBuilder { /* private fields */ }
Expand description
A builder for RuleMetadata
.
Implementations§
source§impl RuleMetadataBuilder
impl RuleMetadataBuilder
sourcepub fn set_rule_id(self, input: Option<String>) -> Self
pub fn set_rule_id(self, input: Option<String>) -> Self
The ID of the rule.
sourcepub fn get_rule_id(&self) -> &Option<String>
pub fn get_rule_id(&self) -> &Option<String>
The ID of the rule.
sourcepub fn set_rule_name(self, input: Option<String>) -> Self
pub fn set_rule_name(self, input: Option<String>) -> Self
The name of the rule.
sourcepub fn get_rule_name(&self) -> &Option<String>
pub fn get_rule_name(&self) -> &Option<String>
The name of the rule.
sourcepub fn short_description(self, input: impl Into<String>) -> Self
pub fn short_description(self, input: impl Into<String>) -> Self
A short description of the rule.
sourcepub fn set_short_description(self, input: Option<String>) -> Self
pub fn set_short_description(self, input: Option<String>) -> Self
A short description of the rule.
sourcepub fn get_short_description(&self) -> &Option<String>
pub fn get_short_description(&self) -> &Option<String>
A short description of the rule.
sourcepub fn long_description(self, input: impl Into<String>) -> Self
pub fn long_description(self, input: impl Into<String>) -> Self
A long description of the rule.
sourcepub fn set_long_description(self, input: Option<String>) -> Self
pub fn set_long_description(self, input: Option<String>) -> Self
A long description of the rule.
sourcepub fn get_long_description(&self) -> &Option<String>
pub fn get_long_description(&self) -> &Option<String>
A long description of the rule.
Appends an item to rule_tags
.
To override the contents of this collection use set_rule_tags
.
Tags that are associated with the rule.
Tags that are associated with the rule.
Tags that are associated with the rule.
sourcepub fn build(self) -> RuleMetadata
pub fn build(self) -> RuleMetadata
Consumes the builder and constructs a RuleMetadata
.
Trait Implementations§
source§impl Clone for RuleMetadataBuilder
impl Clone for RuleMetadataBuilder
source§fn clone(&self) -> RuleMetadataBuilder
fn clone(&self) -> RuleMetadataBuilder
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 RuleMetadataBuilder
impl Debug for RuleMetadataBuilder
source§impl Default for RuleMetadataBuilder
impl Default for RuleMetadataBuilder
source§fn default() -> RuleMetadataBuilder
fn default() -> RuleMetadataBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RuleMetadataBuilder
impl PartialEq for RuleMetadataBuilder
source§fn eq(&self, other: &RuleMetadataBuilder) -> bool
fn eq(&self, other: &RuleMetadataBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RuleMetadataBuilder
Auto Trait Implementations§
impl Freeze for RuleMetadataBuilder
impl RefUnwindSafe for RuleMetadataBuilder
impl Send for RuleMetadataBuilder
impl Sync for RuleMetadataBuilder
impl Unpin for RuleMetadataBuilder
impl UnwindSafe for RuleMetadataBuilder
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.