pub struct ResultCacheConfig {
pub enabled: bool,
pub max_size: usize,
pub ttl: Duration,
pub eviction_policy: EvictionPolicy,
pub compress_large_results: bool,
}Expand description
Result cache configuration
Fields§
§enabled: bool§max_size: usize§ttl: Duration§eviction_policy: EvictionPolicy§compress_large_results: boolTrait 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
Auto Trait Implementations§
impl Freeze for ResultCacheConfig
impl RefUnwindSafe for ResultCacheConfig
impl Send for ResultCacheConfig
impl Sync for ResultCacheConfig
impl Unpin 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