pub struct KeyExtractor { /* private fields */ }Expand description
Strategy used to turn requests into cache keys.
The layer ships with helpers for common patterns such as
KeyExtractor::path_and_query and KeyExtractor::path.
You can also provide your own extractor with KeyExtractor::custom.
Implementations§
Source§impl KeyExtractor
impl KeyExtractor
Trait Implementations§
Source§impl Clone for KeyExtractor
impl Clone for KeyExtractor
Source§fn clone(&self) -> KeyExtractor
fn clone(&self) -> KeyExtractor
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 KeyExtractor
impl !RefUnwindSafe for KeyExtractor
impl Send for KeyExtractor
impl Sync for KeyExtractor
impl Unpin for KeyExtractor
impl !UnwindSafe for KeyExtractor
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