#[non_exhaustive]pub struct InlineArchiveRuleBuilder { /* private fields */ }
Expand description
A builder for InlineArchiveRule
.
Implementations§
source§impl InlineArchiveRuleBuilder
impl InlineArchiveRuleBuilder
sourcepub fn rule_name(self, input: impl Into<String>) -> Self
pub fn rule_name(self, input: impl Into<String>) -> Self
The name of the rule.
This field is required.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 filter(self, k: impl Into<String>, v: Criterion) -> Self
pub fn filter(self, k: impl Into<String>, v: Criterion) -> Self
Adds a key-value pair to filter
.
To override the contents of this collection use set_filter
.
The condition and values for a criterion.
sourcepub fn set_filter(self, input: Option<HashMap<String, Criterion>>) -> Self
pub fn set_filter(self, input: Option<HashMap<String, Criterion>>) -> Self
The condition and values for a criterion.
sourcepub fn get_filter(&self) -> &Option<HashMap<String, Criterion>>
pub fn get_filter(&self) -> &Option<HashMap<String, Criterion>>
The condition and values for a criterion.
sourcepub fn build(self) -> Result<InlineArchiveRule, BuildError>
pub fn build(self) -> Result<InlineArchiveRule, BuildError>
Consumes the builder and constructs a InlineArchiveRule
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for InlineArchiveRuleBuilder
impl Clone for InlineArchiveRuleBuilder
source§fn clone(&self) -> InlineArchiveRuleBuilder
fn clone(&self) -> InlineArchiveRuleBuilder
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 InlineArchiveRuleBuilder
impl Debug for InlineArchiveRuleBuilder
source§impl Default for InlineArchiveRuleBuilder
impl Default for InlineArchiveRuleBuilder
source§fn default() -> InlineArchiveRuleBuilder
fn default() -> InlineArchiveRuleBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for InlineArchiveRuleBuilder
impl PartialEq for InlineArchiveRuleBuilder
source§fn eq(&self, other: &InlineArchiveRuleBuilder) -> bool
fn eq(&self, other: &InlineArchiveRuleBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InlineArchiveRuleBuilder
Auto Trait Implementations§
impl Freeze for InlineArchiveRuleBuilder
impl RefUnwindSafe for InlineArchiveRuleBuilder
impl Send for InlineArchiveRuleBuilder
impl Sync for InlineArchiveRuleBuilder
impl Unpin for InlineArchiveRuleBuilder
impl UnwindSafe for InlineArchiveRuleBuilder
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.