pub enum CleanupAction {
ClearExpiredSearchCache,
ClearSnippetCache,
ClearTemporaryExtraction,
RemoveReplacedStaleIndexes,
DeleteKeywordIndex,
DeleteVectorIndex,
RemoveTemporarySourceIndexes,
ResetCatalog,
}Expand description
Cleanup actions exposed by the Storage view (RFC-001 §9, RFC-011).
Variants§
ClearExpiredSearchCache
Safe: expired search cache entries.
ClearSnippetCache
Safe: expired/temporary snippets.
ClearTemporaryExtraction
Safe: temporary extraction buffers and cache-engine payloads.
RemoveReplacedStaleIndexes
Safe: stale indexes that have already been replaced.
DeleteKeywordIndex
Space recovery: delete keyword index (rebuild required).
DeleteVectorIndex
Space recovery: delete vector index / embeddings (rebuild required).
RemoveTemporarySourceIndexes
Space recovery: delete temporary-source indexes.
ResetCatalog
Destructive: reset the whole catalog (strong confirmation).
Implementations§
Source§impl CleanupAction
impl CleanupAction
Sourcepub fn affected_classes(&self) -> &'static [DataClass]
pub fn affected_classes(&self) -> &'static [DataClass]
Lifecycle classes this action is allowed to touch.
Sourcepub fn requires_rebuild(&self) -> bool
pub fn requires_rebuild(&self) -> bool
Whether running this action makes reindexing necessary.
Sourcepub fn requires_confirmation(&self) -> bool
pub fn requires_confirmation(&self) -> bool
Whether the UI must show an explicit confirmation dialog.
Sourcepub fn touches_persistent_catalog(&self) -> bool
pub fn touches_persistent_catalog(&self) -> bool
Whether this action may touch persistent catalog data.
Trait Implementations§
Source§impl Clone for CleanupAction
impl Clone for CleanupAction
Source§fn clone(&self) -> CleanupAction
fn clone(&self) -> CleanupAction
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 moreimpl Copy for CleanupAction
Source§impl Debug for CleanupAction
impl Debug for CleanupAction
Source§impl<'de> Deserialize<'de> for CleanupAction
impl<'de> Deserialize<'de> for CleanupAction
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
impl Eq for CleanupAction
Source§impl PartialEq for CleanupAction
impl PartialEq for CleanupAction
Source§fn eq(&self, other: &CleanupAction) -> bool
fn eq(&self, other: &CleanupAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CleanupAction
impl Serialize for CleanupAction
impl StructuralPartialEq for CleanupAction
Auto Trait Implementations§
impl Freeze for CleanupAction
impl RefUnwindSafe for CleanupAction
impl Send for CleanupAction
impl Sync for CleanupAction
impl Unpin for CleanupAction
impl UnsafeUnpin for CleanupAction
impl UnwindSafe for CleanupAction
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