pub struct RetentionRule {
pub table: String,
pub timestamp_column: String,
pub max_age_days: u32,
}Expand description
Retention policy for a single table.
Fields§
§table: StringTable name to apply the policy to.
timestamp_column: StringColumn containing the timestamp (e.g. “created_at”).
max_age_days: u32Maximum age in days. Rows older than this are purged.
Trait Implementations§
Source§impl Clone for RetentionRule
impl Clone for RetentionRule
Source§fn clone(&self) -> RetentionRule
fn clone(&self) -> RetentionRule
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 RetentionRule
impl Debug for RetentionRule
Source§impl<'de> Deserialize<'de> for RetentionRule
impl<'de> Deserialize<'de> for RetentionRule
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
Auto Trait Implementations§
impl Freeze for RetentionRule
impl RefUnwindSafe for RetentionRule
impl Send for RetentionRule
impl Sync for RetentionRule
impl Unpin for RetentionRule
impl UnsafeUnpin for RetentionRule
impl UnwindSafe for RetentionRule
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