pub type ResponseCachePolicy<C> = CachePolicy<CacheValue<<C as CacheableResponse>::Cached>, C>;Expand description
Cache policy for responses.
Type alias that specializes CachePolicy for response caching:
Cacheablevariant contains aCacheValuewith the cached representationNonCacheablevariant contains the original response
Aliased Type§
pub enum ResponseCachePolicy<C> {
Cacheable(CacheValue<<C as CacheableResponse>::Cached>),
NonCacheable(C),
}Variants§
Cacheable(CacheValue<<C as CacheableResponse>::Cached>)
Entity should be cached.
NonCacheable(C)
Entity should not be cached; pass through directly.