pub enum CacheKeyStrategy {
UrlOnly,
UrlAndMethod,
UrlAndQuery,
UrlAndHeaders,
}Expand description
Cache key generation strategy
Variants§
UrlOnly
URL only
UrlAndMethod
URL and method
UrlAndQuery
URL and query parameters
UrlAndHeaders
URL and headers
Trait Implementations§
Source§impl Clone for CacheKeyStrategy
impl Clone for CacheKeyStrategy
Source§fn clone(&self) -> CacheKeyStrategy
fn clone(&self) -> CacheKeyStrategy
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 moreimpl Copy for CacheKeyStrategy
Auto Trait Implementations§
impl Freeze for CacheKeyStrategy
impl RefUnwindSafe for CacheKeyStrategy
impl Send for CacheKeyStrategy
impl Sync for CacheKeyStrategy
impl Unpin for CacheKeyStrategy
impl UnsafeUnpin for CacheKeyStrategy
impl UnwindSafe for CacheKeyStrategy
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