pub struct ResultCacheConfig {
pub enabled: bool,
pub ttl_secs: u64,
}Expand description
Configuration for the tool result cache.
Fields§
§enabled: boolWhether caching is enabled. Default: true.
ttl_secs: u64Time-to-live in seconds. 0 means entries never expire. Default: 300.
Trait Implementations§
Source§impl Clone for ResultCacheConfig
impl Clone for ResultCacheConfig
Source§fn clone(&self) -> ResultCacheConfig
fn clone(&self) -> ResultCacheConfig
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 ResultCacheConfig
impl Debug for ResultCacheConfig
Source§impl Default for ResultCacheConfig
impl Default for ResultCacheConfig
Source§impl<'de> Deserialize<'de> for ResultCacheConfig
impl<'de> Deserialize<'de> for ResultCacheConfig
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 ResultCacheConfig
impl RefUnwindSafe for ResultCacheConfig
impl Send for ResultCacheConfig
impl Sync for ResultCacheConfig
impl Unpin for ResultCacheConfig
impl UnsafeUnpin for ResultCacheConfig
impl UnwindSafe for ResultCacheConfig
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