pub struct CacheConfig {
pub cache_dir: Option<String>,
pub cache_file_name: Option<String>,
pub cleanup_interval: Option<u64>,
pub default_compression: Option<bool>,
pub compression_level: Option<u32>,
pub compression_threshold: Option<usize>,
pub compression_method: Option<CompressionMethod>,
}
Expand description
Configuration options for the cache plugin
Fields§
§cache_dir: Option<String>
Custom directory path for storing cache files
cache_file_name: Option<String>
Custom file name for the cache file
cleanup_interval: Option<u64>
Cleanup interval in seconds
default_compression: Option<bool>
Default compression setting for new items
compression_level: Option<u32>
Compression level (0-9, where 0 is no compression and 9 is max compression)
compression_threshold: Option<usize>
Threshold in bytes after which compression is applied
compression_method: Option<CompressionMethod>
Compression method to use (zlib or lzma2)
Trait Implementations§
Source§impl Clone for CacheConfig
impl Clone for CacheConfig
Source§fn clone(&self) -> CacheConfig
fn clone(&self) -> CacheConfig
Returns a copy 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 CacheConfig
impl Debug for CacheConfig
Source§impl Default for CacheConfig
impl Default for CacheConfig
Source§impl<'de> Deserialize<'de> for CacheConfig
impl<'de> Deserialize<'de> for CacheConfig
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 CacheConfig
impl RefUnwindSafe for CacheConfig
impl Send for CacheConfig
impl Sync for CacheConfig
impl Unpin for CacheConfig
impl UnwindSafe for CacheConfig
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