pub enum DatabaseRetentionPolicy {
NoTtl,
UseTtl,
}Expand description
Defines whether data should expire from the database after a given interval.
See Database Retention Policy for more information.
Variants§
NoTtl
The data will never expiry.
UseTtl
The data will expire after the ttl.
The field database_retention_ttl will be used to
determine how many seconds the data is kept in the database.
Trait Implementations§
Source§impl Clone for DatabaseRetentionPolicy
impl Clone for DatabaseRetentionPolicy
Source§fn clone(&self) -> DatabaseRetentionPolicy
fn clone(&self) -> DatabaseRetentionPolicy
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 DatabaseRetentionPolicy
impl Debug for DatabaseRetentionPolicy
Source§impl Default for DatabaseRetentionPolicy
impl Default for DatabaseRetentionPolicy
Source§fn default() -> DatabaseRetentionPolicy
fn default() -> DatabaseRetentionPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DatabaseRetentionPolicy
impl<'de> Deserialize<'de> for DatabaseRetentionPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DatabaseRetentionPolicy
impl Display for DatabaseRetentionPolicy
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 DatabaseRetentionPolicy
impl PartialEq for DatabaseRetentionPolicy
Source§fn eq(&self, other: &DatabaseRetentionPolicy) -> bool
fn eq(&self, other: &DatabaseRetentionPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DatabaseRetentionPolicy
impl Serialize for DatabaseRetentionPolicy
impl Copy for DatabaseRetentionPolicy
impl Eq for DatabaseRetentionPolicy
impl StructuralPartialEq for DatabaseRetentionPolicy
Auto Trait Implementations§
impl Freeze for DatabaseRetentionPolicy
impl RefUnwindSafe for DatabaseRetentionPolicy
impl Send for DatabaseRetentionPolicy
impl Sync for DatabaseRetentionPolicy
impl Unpin for DatabaseRetentionPolicy
impl UnsafeUnpin for DatabaseRetentionPolicy
impl UnwindSafe for DatabaseRetentionPolicy
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.