pub struct SemanticCacheConfig {
pub enabled: bool,
pub similarity_threshold: f64,
pub ttl_seconds: i64,
}Fields§
§enabled: boolWhether semantic caching is enabled
similarity_threshold: f64Similarity threshold for cache hits (0.0-1.0)
ttl_seconds: i64Time-to-live for cache entries in seconds
Implementations§
Trait 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
Source§impl Default for SemanticCacheConfig
impl Default for SemanticCacheConfig
Source§fn default() -> SemanticCacheConfig
fn default() -> SemanticCacheConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SemanticCacheConfig
impl<'de> Deserialize<'de> for SemanticCacheConfig
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
Source§impl PartialEq for SemanticCacheConfig
impl PartialEq for SemanticCacheConfig
Source§impl Serialize for SemanticCacheConfig
impl Serialize for SemanticCacheConfig
impl StructuralPartialEq 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