#[non_exhaustive]pub struct ArchiveRuleSummaryBuilder { /* private fields */ }
Expand description
A builder for ArchiveRuleSummary
.
Implementations§
source§impl ArchiveRuleSummaryBuilder
impl ArchiveRuleSummaryBuilder
sourcepub fn rule_name(self, input: impl Into<String>) -> Self
pub fn rule_name(self, input: impl Into<String>) -> Self
The name of the archive 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 archive rule.
sourcepub fn get_rule_name(&self) -> &Option<String>
pub fn get_rule_name(&self) -> &Option<String>
The name of the archive 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
.
A filter used to define the archive rule.
sourcepub fn set_filter(self, input: Option<HashMap<String, Criterion>>) -> Self
pub fn set_filter(self, input: Option<HashMap<String, Criterion>>) -> Self
A filter used to define the archive rule.
sourcepub fn get_filter(&self) -> &Option<HashMap<String, Criterion>>
pub fn get_filter(&self) -> &Option<HashMap<String, Criterion>>
A filter used to define the archive rule.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time at which the archive rule was created.
This field is required.sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time at which the archive rule was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time at which the archive rule was created.
sourcepub fn updated_at(self, input: DateTime) -> Self
pub fn updated_at(self, input: DateTime) -> Self
The time at which the archive rule was last updated.
This field is required.sourcepub fn set_updated_at(self, input: Option<DateTime>) -> Self
pub fn set_updated_at(self, input: Option<DateTime>) -> Self
The time at which the archive rule was last updated.
sourcepub fn get_updated_at(&self) -> &Option<DateTime>
pub fn get_updated_at(&self) -> &Option<DateTime>
The time at which the archive rule was last updated.
sourcepub fn build(self) -> Result<ArchiveRuleSummary, BuildError>
pub fn build(self) -> Result<ArchiveRuleSummary, BuildError>
Consumes the builder and constructs a ArchiveRuleSummary
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ArchiveRuleSummaryBuilder
impl Clone for ArchiveRuleSummaryBuilder
source§fn clone(&self) -> ArchiveRuleSummaryBuilder
fn clone(&self) -> ArchiveRuleSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ArchiveRuleSummaryBuilder
impl Debug for ArchiveRuleSummaryBuilder
source§impl Default for ArchiveRuleSummaryBuilder
impl Default for ArchiveRuleSummaryBuilder
source§fn default() -> ArchiveRuleSummaryBuilder
fn default() -> ArchiveRuleSummaryBuilder
source§impl PartialEq for ArchiveRuleSummaryBuilder
impl PartialEq for ArchiveRuleSummaryBuilder
source§fn eq(&self, other: &ArchiveRuleSummaryBuilder) -> bool
fn eq(&self, other: &ArchiveRuleSummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ArchiveRuleSummaryBuilder
Auto Trait Implementations§
impl Freeze for ArchiveRuleSummaryBuilder
impl RefUnwindSafe for ArchiveRuleSummaryBuilder
impl Send for ArchiveRuleSummaryBuilder
impl Sync for ArchiveRuleSummaryBuilder
impl Unpin for ArchiveRuleSummaryBuilder
impl UnwindSafe for ArchiveRuleSummaryBuilder
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
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>
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>
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 more