pub struct EmbeddingCacheConfig {
pub enabled: bool,
pub max_size: usize,
pub ttl: Duration,
pub eviction_policy: EvictionPolicy,
pub compression_enabled: bool,
}Expand description
Embedding cache configuration
Fields§
§enabled: bool§max_size: usize§ttl: Duration§eviction_policy: EvictionPolicy§compression_enabled: boolTrait Implementations§
Source§impl Clone for EmbeddingCacheConfig
impl Clone for EmbeddingCacheConfig
Source§fn clone(&self) -> EmbeddingCacheConfig
fn clone(&self) -> EmbeddingCacheConfig
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 EmbeddingCacheConfig
impl Debug for EmbeddingCacheConfig
Auto Trait Implementations§
impl Freeze for EmbeddingCacheConfig
impl RefUnwindSafe for EmbeddingCacheConfig
impl Send for EmbeddingCacheConfig
impl Sync for EmbeddingCacheConfig
impl Unpin for EmbeddingCacheConfig
impl UnwindSafe for EmbeddingCacheConfig
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