pub enum OrbokCacheNamespace {
ExtractSegments,
ChunkBundle,
EmbeddingBundle {
model_id: String,
vector_format: String,
},
PreviewCache,
}Expand description
The orbok cache namespaces. Embedding bundles are parameterized by model and vector format so different models never collide.
Variants§
ExtractSegments
Extracted, normalized segments per source file (RFC-005 output).
ChunkBundle
Chunk bundles per source file (RFC-006 output).
EmbeddingBundle
Embedding bundles per source file for one model+format (RFC-008).
PreviewCache
Rendered preview/snippet payloads (RFC-013 preview pane).
Implementations§
Source§impl OrbokCacheNamespace
impl OrbokCacheNamespace
Sourcepub fn as_namespace(&self) -> String
pub fn as_namespace(&self) -> String
The localcache namespace string (Appendix A §7 table).
Sourcepub fn payload_version(&self) -> u32
pub fn payload_version(&self) -> u32
localcache payload version for purge_stale_versions.
Sourcepub fn data_class(&self) -> DataClass
pub fn data_class(&self) -> DataClass
Lifecycle class of the payloads (RFC-001 §5, Appendix A §6): derived pipeline payloads are rebuildable; previews are ephemeral.
Trait Implementations§
Source§impl Clone for OrbokCacheNamespace
impl Clone for OrbokCacheNamespace
Source§fn clone(&self) -> OrbokCacheNamespace
fn clone(&self) -> OrbokCacheNamespace
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 moreSource§impl Debug for OrbokCacheNamespace
impl Debug for OrbokCacheNamespace
impl Eq for OrbokCacheNamespace
Source§impl PartialEq for OrbokCacheNamespace
impl PartialEq for OrbokCacheNamespace
Source§fn eq(&self, other: &OrbokCacheNamespace) -> bool
fn eq(&self, other: &OrbokCacheNamespace) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OrbokCacheNamespace
Auto Trait Implementations§
impl Freeze for OrbokCacheNamespace
impl RefUnwindSafe for OrbokCacheNamespace
impl Send for OrbokCacheNamespace
impl Sync for OrbokCacheNamespace
impl Unpin for OrbokCacheNamespace
impl UnsafeUnpin for OrbokCacheNamespace
impl UnwindSafe for OrbokCacheNamespace
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