pub struct PersistedCacheData {
pub version: u32,
pub timestamp: SystemTime,
pub query_cache: HashMap<String, QueryCacheEntry>,
pub embedding_cache: HashMap<String, EmbeddingCacheEntry>,
pub semantic_cache: HashMap<String, SemanticCacheEntry>,
pub result_cache: HashMap<String, ResultCacheEntry>,
pub stats: HashMap<String, CacheStats>,
pub metadata: PersistenceMetadata,
}Expand description
Persisted cache data structure
Fields§
§version: u32Version for compatibility
timestamp: SystemTimeTimestamp of persistence
query_cache: HashMap<String, QueryCacheEntry>Query cache entries
embedding_cache: HashMap<String, EmbeddingCacheEntry>Embedding cache entries
semantic_cache: HashMap<String, SemanticCacheEntry>Semantic cache entries
result_cache: HashMap<String, ResultCacheEntry>Result cache entries
stats: HashMap<String, CacheStats>Cache statistics
metadata: PersistenceMetadataMetadata
Trait Implementations§
Source§impl Clone for PersistedCacheData
impl Clone for PersistedCacheData
Source§fn clone(&self) -> PersistedCacheData
fn clone(&self) -> PersistedCacheData
Returns a duplicate of the value. Read more
1.0.0 · 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 PersistedCacheData
impl Debug for PersistedCacheData
Source§impl Default for PersistedCacheData
impl Default for PersistedCacheData
Source§impl<'de> Deserialize<'de> for PersistedCacheData
impl<'de> Deserialize<'de> for PersistedCacheData
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
Auto Trait Implementations§
impl Freeze for PersistedCacheData
impl RefUnwindSafe for PersistedCacheData
impl Send for PersistedCacheData
impl Sync for PersistedCacheData
impl Unpin for PersistedCacheData
impl UnwindSafe for PersistedCacheData
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