pub struct CacheSection {
pub enabled: Option<bool>,
pub strategy: Option<String>,
}Expand description
Cache configuration.
Fields§
§enabled: Option<bool>Master switch — false disables all caching hints.
strategy: Option<String>Cache strategy: “auto”, “disabled”, or a manual config.
Trait Implementations§
Source§impl Clone for CacheSection
impl Clone for CacheSection
Source§fn clone(&self) -> CacheSection
fn clone(&self) -> CacheSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CacheSection
impl Debug for CacheSection
Source§impl Default for CacheSection
impl Default for CacheSection
Source§fn default() -> CacheSection
fn default() -> CacheSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CacheSectionwhere
CacheSection: Default,
impl<'de> Deserialize<'de> for CacheSectionwhere
CacheSection: 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 CacheSection
impl RefUnwindSafe for CacheSection
impl Send for CacheSection
impl Sync for CacheSection
impl Unpin for CacheSection
impl UnsafeUnpin for CacheSection
impl UnwindSafe for CacheSection
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