pub struct SemanticCacheConfig {
pub enabled: bool,
pub max_size: usize,
pub ttl: Duration,
pub similarity_threshold: f32,
pub clustering_enabled: bool,
pub max_clusters: usize,
}Expand description
Semantic cache configuration
Fields§
§enabled: bool§max_size: usize§ttl: Duration§similarity_threshold: f32§clustering_enabled: bool§max_clusters: usizeTrait Implementations§
Source§impl Clone for SemanticCacheConfig
impl Clone for SemanticCacheConfig
Source§fn clone(&self) -> SemanticCacheConfig
fn clone(&self) -> SemanticCacheConfig
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 SemanticCacheConfig
impl Debug for SemanticCacheConfig
Auto Trait Implementations§
impl Freeze for SemanticCacheConfig
impl RefUnwindSafe for SemanticCacheConfig
impl Send for SemanticCacheConfig
impl Sync for SemanticCacheConfig
impl Unpin for SemanticCacheConfig
impl UnwindSafe for SemanticCacheConfig
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