pub struct CachingConfiguration {
pub min_body_size: usize,
pub max_body_size: usize,
pub cacheable_by_default: bool,
pub cache_duration: Option<CacheDurationHook>,
}
Expand description
Caching configuration.
Fields§
§min_body_size: usize
Minimum body size.
max_body_size: usize
Maximum body size.
cacheable_by_default: bool
Cacheable by default.
cache_duration: Option<CacheDurationHook>
Cache duration (hook).
Trait Implementations§
Source§impl Clone for CachingConfiguration
impl Clone for CachingConfiguration
Source§fn clone(&self) -> CachingConfiguration
fn clone(&self) -> CachingConfiguration
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 moreAuto Trait Implementations§
impl Freeze for CachingConfiguration
impl !RefUnwindSafe for CachingConfiguration
impl Send for CachingConfiguration
impl Sync for CachingConfiguration
impl Unpin for CachingConfiguration
impl !UnwindSafe for CachingConfiguration
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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