#[non_exhaustive]pub struct DeleteOnEmptyReconfiguration {
pub min_age_secs: Maybe<Option<u64>>,
}Expand description
Reconfiguration for DeleteOnEmptyConfig.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.min_age_secs: Maybe<Option<u64>>Override for the existing min_age_secs.
Implementations§
Source§impl DeleteOnEmptyReconfiguration
impl DeleteOnEmptyReconfiguration
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new DeleteOnEmptyReconfiguration.
Sourcepub fn with_min_age(self, min_age: Duration) -> Self
pub fn with_min_age(self, min_age: Duration) -> Self
Set the override for the existing min_age_secs.
Trait Implementations§
Source§impl Clone for DeleteOnEmptyReconfiguration
impl Clone for DeleteOnEmptyReconfiguration
Source§fn clone(&self) -> DeleteOnEmptyReconfiguration
fn clone(&self) -> DeleteOnEmptyReconfiguration
Returns a duplicate 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 DeleteOnEmptyReconfiguration
impl Debug for DeleteOnEmptyReconfiguration
Source§impl Default for DeleteOnEmptyReconfiguration
impl Default for DeleteOnEmptyReconfiguration
Source§fn default() -> DeleteOnEmptyReconfiguration
fn default() -> DeleteOnEmptyReconfiguration
Returns the “default value” for a type. Read more
Source§impl From<DeleteOnEmptyReconfiguration> for DeleteOnEmptyReconfiguration
impl From<DeleteOnEmptyReconfiguration> for DeleteOnEmptyReconfiguration
Source§fn from(value: DeleteOnEmptyReconfiguration) -> Self
fn from(value: DeleteOnEmptyReconfiguration) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeleteOnEmptyReconfiguration
impl RefUnwindSafe for DeleteOnEmptyReconfiguration
impl Send for DeleteOnEmptyReconfiguration
impl Sync for DeleteOnEmptyReconfiguration
impl Unpin for DeleteOnEmptyReconfiguration
impl UnwindSafe for DeleteOnEmptyReconfiguration
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more