pub struct RetentionConfigBuilder { /* private fields */ }
Expand description
Builder for RetentionConfig
.
Implementations§
source§impl RetentionConfigBuilder
impl RetentionConfigBuilder
pub fn time(&mut self, value: Option<Duration>) -> &mut Self
pub fn segment_size(&mut self, value: Option<ByteSize>) -> &mut Self
sourcepub fn build(&self) -> Result<RetentionConfig, RetentionConfigBuilderError>
pub fn build(&self) -> Result<RetentionConfig, RetentionConfigBuilderError>
Trait Implementations§
source§impl Clone for RetentionConfigBuilder
impl Clone for RetentionConfigBuilder
source§fn clone(&self) -> RetentionConfigBuilder
fn clone(&self) -> RetentionConfigBuilder
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 moreAuto Trait Implementations§
impl Freeze for RetentionConfigBuilder
impl RefUnwindSafe for RetentionConfigBuilder
impl Send for RetentionConfigBuilder
impl Sync for RetentionConfigBuilder
impl Unpin for RetentionConfigBuilder
impl UnwindSafe for RetentionConfigBuilder
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