#[non_exhaustive]pub struct FolderConfigurationBuilder { /* private fields */ }
Expand description
A builder for FolderConfiguration
.
Implementations§
source§impl FolderConfigurationBuilder
impl FolderConfigurationBuilder
sourcepub fn name(self, input: FolderName) -> Self
pub fn name(self, input: FolderName) -> Self
The folder name.
This field is required.sourcepub fn set_name(self, input: Option<FolderName>) -> Self
pub fn set_name(self, input: Option<FolderName>) -> Self
The folder name.
sourcepub fn get_name(&self) -> &Option<FolderName>
pub fn get_name(&self) -> &Option<FolderName>
The folder name.
sourcepub fn action(self, input: RetentionAction) -> Self
pub fn action(self, input: RetentionAction) -> Self
The action to take on the folder contents at the end of the folder configuration period.
This field is required.sourcepub fn set_action(self, input: Option<RetentionAction>) -> Self
pub fn set_action(self, input: Option<RetentionAction>) -> Self
The action to take on the folder contents at the end of the folder configuration period.
sourcepub fn get_action(&self) -> &Option<RetentionAction>
pub fn get_action(&self) -> &Option<RetentionAction>
The action to take on the folder contents at the end of the folder configuration period.
sourcepub fn period(self, input: i32) -> Self
pub fn period(self, input: i32) -> Self
The number of days for which the folder-configuration action applies.
sourcepub fn set_period(self, input: Option<i32>) -> Self
pub fn set_period(self, input: Option<i32>) -> Self
The number of days for which the folder-configuration action applies.
sourcepub fn get_period(&self) -> &Option<i32>
pub fn get_period(&self) -> &Option<i32>
The number of days for which the folder-configuration action applies.
sourcepub fn build(self) -> Result<FolderConfiguration, BuildError>
pub fn build(self) -> Result<FolderConfiguration, BuildError>
Consumes the builder and constructs a FolderConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for FolderConfigurationBuilder
impl Clone for FolderConfigurationBuilder
source§fn clone(&self) -> FolderConfigurationBuilder
fn clone(&self) -> FolderConfigurationBuilder
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 FolderConfigurationBuilder
impl Debug for FolderConfigurationBuilder
source§impl Default for FolderConfigurationBuilder
impl Default for FolderConfigurationBuilder
source§fn default() -> FolderConfigurationBuilder
fn default() -> FolderConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for FolderConfigurationBuilder
impl PartialEq for FolderConfigurationBuilder
source§fn eq(&self, other: &FolderConfigurationBuilder) -> bool
fn eq(&self, other: &FolderConfigurationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FolderConfigurationBuilder
Auto Trait Implementations§
impl Freeze for FolderConfigurationBuilder
impl RefUnwindSafe for FolderConfigurationBuilder
impl Send for FolderConfigurationBuilder
impl Sync for FolderConfigurationBuilder
impl Unpin for FolderConfigurationBuilder
impl UnwindSafe for FolderConfigurationBuilder
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.