#[non_exhaustive]pub enum Rule {
MaxNumVersions(i32),
MaxAge(Box<Duration>),
Intersection(Box<Intersection>),
Union(Box<Union>),
}Expand description
Garbage collection rules.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MaxNumVersions(i32)
Delete all cells in a column except the most recent N.
MaxAge(Box<Duration>)
Delete cells in a column older than the given age. Values must be at least one millisecond, and will be truncated to microsecond granularity.
Intersection(Box<Intersection>)
Delete cells that would be deleted by every nested rule.
Union(Box<Union>)
Delete cells that would be deleted by any nested rule.
Trait Implementations§
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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