pub struct CompositeKeyExtractor { /* private fields */ }Expand description
A composite key extractor that combines multiple extractors.
Keys from all extractors are joined with : to form a composite key.
If any extractor returns None, that part is omitted.
Implementations§
Source§impl CompositeKeyExtractor
impl CompositeKeyExtractor
Sourcepub fn new(extractors: Vec<Box<dyn KeyExtractor>>) -> Self
pub fn new(extractors: Vec<Box<dyn KeyExtractor>>) -> Self
Create a composite key extractor from multiple extractors.
Trait Implementations§
Source§impl KeyExtractor for CompositeKeyExtractor
impl KeyExtractor for CompositeKeyExtractor
Auto Trait Implementations§
impl Freeze for CompositeKeyExtractor
impl !RefUnwindSafe for CompositeKeyExtractor
impl Send for CompositeKeyExtractor
impl Sync for CompositeKeyExtractor
impl Unpin for CompositeKeyExtractor
impl !UnwindSafe for CompositeKeyExtractor
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).