pub enum DatabaseRetention {
NoTtl,
UseTtl {
ttl: Duration,
},
}Expand description
Defines if data should be expired from the database after a given interval.
See Database Retention Policy for more information.
Variants§
Implementations§
Source§impl DatabaseRetention
impl DatabaseRetention
Trait Implementations§
Source§impl Clone for DatabaseRetention
impl Clone for DatabaseRetention
Source§fn clone(&self) -> DatabaseRetention
fn clone(&self) -> DatabaseRetention
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DatabaseRetention
impl Debug for DatabaseRetention
Source§impl Default for DatabaseRetention
impl Default for DatabaseRetention
Source§fn default() -> DatabaseRetention
fn default() -> DatabaseRetention
Returns the “default value” for a type. Read more
Source§impl From<DatabaseRetention> for DatabaseRetentionPolicy
impl From<DatabaseRetention> for DatabaseRetentionPolicy
Source§fn from(value: DatabaseRetention) -> Self
fn from(value: DatabaseRetention) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DatabaseRetention
impl PartialEq for DatabaseRetention
Source§fn eq(&self, other: &DatabaseRetention) -> bool
fn eq(&self, other: &DatabaseRetention) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DatabaseRetention
impl Eq for DatabaseRetention
impl StructuralPartialEq for DatabaseRetention
Auto Trait Implementations§
impl Freeze for DatabaseRetention
impl RefUnwindSafe for DatabaseRetention
impl Send for DatabaseRetention
impl Sync for DatabaseRetention
impl Unpin for DatabaseRetention
impl UnsafeUnpin for DatabaseRetention
impl UnwindSafe for DatabaseRetention
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.