pub struct CacheConfig {
pub apq_enabled: bool,
pub apq_ttl_secs: u64,
pub apq_max_entries: usize,
pub response_cache_enabled: bool,
pub response_cache_ttl_secs: u64,
pub response_cache_max_entries: usize,
}Expand description
Caching configuration.
Fields§
§apq_enabled: boolEnable Automatic Persisted Queries (APQ).
apq_ttl_secs: u64APQ cache TTL in seconds.
apq_max_entries: usizeMaximum APQ cache entries.
response_cache_enabled: boolEnable response caching.
response_cache_ttl_secs: u64Response cache TTL in seconds.
response_cache_max_entries: usizeMaximum response cache entries.
Trait Implementations§
Source§impl Clone for CacheConfig
impl Clone for CacheConfig
Source§fn clone(&self) -> CacheConfig
fn clone(&self) -> CacheConfig
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 CacheConfig
impl Debug for CacheConfig
Source§impl Default for CacheConfig
impl Default for CacheConfig
Source§impl<'de> Deserialize<'de> for CacheConfigwhere
CacheConfig: Default,
impl<'de> Deserialize<'de> for CacheConfigwhere
CacheConfig: 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 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