pub struct CachingConfig {
pub enabled: bool,
pub backend: String,
pub redis_url: Option<String>,
pub rules: Vec<CacheRule>,
}Expand description
Caching configuration
Fields§
§enabled: boolEnable caching
backend: StringCache backend (redis, memory, postgresql)
redis_url: Option<String>Redis connection URL
rules: Vec<CacheRule>Cache invalidation rules
Trait Implementations§
Source§impl Clone for CachingConfig
impl Clone for CachingConfig
Source§fn clone(&self) -> CachingConfig
fn clone(&self) -> CachingConfig
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 CachingConfig
impl Debug for CachingConfig
Source§impl Default for CachingConfig
impl Default for CachingConfig
Source§impl<'de> Deserialize<'de> for CachingConfigwhere
CachingConfig: Default,
impl<'de> Deserialize<'de> for CachingConfigwhere
CachingConfig: Default,
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 CachingConfig
impl RefUnwindSafe for CachingConfig
impl Send for CachingConfig
impl Sync for CachingConfig
impl Unpin for CachingConfig
impl UnwindSafe for CachingConfig
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