#[non_exhaustive]pub struct ArchiveRuleSummaryBuilder { /* private fields */ }Expand description
A builder for ArchiveRuleSummary.
Implementations§
source§impl ArchiveRuleSummaryBuilder
impl ArchiveRuleSummaryBuilder
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.
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.
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) -> ArchiveRuleSummary
pub fn build(self) -> ArchiveRuleSummary
Consumes the builder and constructs a ArchiveRuleSummary.
Trait Implementations§
source§impl Clone for ArchiveRuleSummaryBuilder
impl Clone for ArchiveRuleSummaryBuilder
source§fn clone(&self) -> ArchiveRuleSummaryBuilder
fn clone(&self) -> ArchiveRuleSummaryBuilder
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 ArchiveRuleSummaryBuilder
impl Debug for ArchiveRuleSummaryBuilder
source§impl Default for ArchiveRuleSummaryBuilder
impl Default for ArchiveRuleSummaryBuilder
source§fn default() -> ArchiveRuleSummaryBuilder
fn default() -> ArchiveRuleSummaryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ArchiveRuleSummaryBuilder
impl PartialEq for ArchiveRuleSummaryBuilder
source§fn eq(&self, other: &ArchiveRuleSummaryBuilder) -> bool
fn eq(&self, other: &ArchiveRuleSummaryBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ArchiveRuleSummaryBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more