pub struct DroppedCollection {
pub tenant_id: u32,
pub name: String,
pub owner: String,
pub engine_type: String,
pub deactivated_at_ns: u64,
pub retention_expires_at_ns: u64,
}Expand description
A soft-deleted collection awaiting either UNDROP or retention-driven
hard deletion.
Fields§
§tenant_id: u32Tenant that owns this collection.
name: StringCollection name (unique per tenant while soft-deleted).
owner: StringPreserved owner at the time of DROP — the user who can
UNDROP without superuser/tenant_admin elevation. Empty
string if the owner row could not be resolved at the time
of the catalog read.
engine_type: StringEngine / collection-type slug resolved from
StoredCollection.collection_type.as_str(). One of
"document", "strict", "columnar", "timeseries",
"columnar:spatial", "kv". Drives operator dashboards that
need to group pending-purge rows by engine.
deactivated_at_ns: u64Wall-clock nanoseconds when DROP COLLECTION was committed
(from stored.modification_hlc.wall_ns).
retention_expires_at_ns: u64Wall-clock nanoseconds at which the retention window elapses
and the sweeper will hard-delete this row. Derived from
deactivated_at_ns + retention_window.
Implementations§
Source§impl DroppedCollection
impl DroppedCollection
Sourcepub fn is_expired(&self, now_ns: u64) -> bool
pub fn is_expired(&self, now_ns: u64) -> bool
Whether the retention window has already elapsed as of now_ns.
Rows with is_expired(now_ns) == true are candidates for the
next sweeper pass; they may appear in the list briefly before
the sweeper runs.
Trait Implementations§
Source§impl Clone for DroppedCollection
impl Clone for DroppedCollection
Source§fn clone(&self) -> DroppedCollection
fn clone(&self) -> DroppedCollection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DroppedCollection
impl Debug for DroppedCollection
Source§impl<'de> Deserialize<'de> for DroppedCollection
impl<'de> Deserialize<'de> for DroppedCollection
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>,
Source§impl PartialEq for DroppedCollection
impl PartialEq for DroppedCollection
Source§impl Serialize for DroppedCollection
impl Serialize for DroppedCollection
impl Eq for DroppedCollection
impl StructuralPartialEq for DroppedCollection
Auto Trait Implementations§
impl Freeze for DroppedCollection
impl RefUnwindSafe for DroppedCollection
impl Send for DroppedCollection
impl Sync for DroppedCollection
impl Unpin for DroppedCollection
impl UnsafeUnpin for DroppedCollection
impl UnwindSafe for DroppedCollection
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
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<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.