pub struct TtlSpec {
pub column: String,
pub move_to_volume_after: Option<TtlMove>,
pub delete_after: Option<String>,
}Expand description
Table TTL policy.
Safety posture: column is identifier-validated and must be a real column
in the table. interval/volume/delete_after are app-controlled raw fragments
emitted verbatim — never build them from untrusted input.
Fields§
§column: String§move_to_volume_after: Option<TtlMove>§delete_after: Option<String>Raw INTERVAL fragment for the DELETE tier, e.g. "180 DAY".
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TtlSpec
impl RefUnwindSafe for TtlSpec
impl Send for TtlSpec
impl Sync for TtlSpec
impl Unpin for TtlSpec
impl UnsafeUnpin for TtlSpec
impl UnwindSafe for TtlSpec
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