pub struct ChainedTokenExtractor { /* private fields */ }Expand description
Extract tokens from multiple sources
This struct tries multiple token extractors in sequence until one returns a token. It can be used to extract tokens from different headers or using different methods.
Implementations§
Source§impl ChainedTokenExtractor
impl ChainedTokenExtractor
Sourcepub fn new(extractors: Vec<Arc<dyn TokenExtractor>>) -> Self
pub fn new(extractors: Vec<Arc<dyn TokenExtractor>>) -> Self
Sourcepub fn add_extractor(self, extractor: Arc<dyn TokenExtractor>) -> Self
pub fn add_extractor(self, extractor: Arc<dyn TokenExtractor>) -> Self
Trait Implementations§
Source§impl Clone for ChainedTokenExtractor
impl Clone for ChainedTokenExtractor
Source§fn clone(&self) -> ChainedTokenExtractor
fn clone(&self) -> ChainedTokenExtractor
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 moreSource§impl Debug for ChainedTokenExtractor
impl Debug for ChainedTokenExtractor
Auto Trait Implementations§
impl Freeze for ChainedTokenExtractor
impl !RefUnwindSafe for ChainedTokenExtractor
impl Send for ChainedTokenExtractor
impl Sync for ChainedTokenExtractor
impl Unpin for ChainedTokenExtractor
impl !UnwindSafe for ChainedTokenExtractor
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