pub struct HeaderSource(pub &'static str);Expand description
Extracts a token from a custom request header (e.g., X-API-Token: xxx).
The inner &'static str is the header name.
Tuple Fields§
§0: &'static strTrait Implementations§
Source§impl TokenSource for HeaderSource
impl TokenSource for HeaderSource
Auto Trait Implementations§
impl Freeze for HeaderSource
impl RefUnwindSafe for HeaderSource
impl Send for HeaderSource
impl Sync for HeaderSource
impl Unpin for HeaderSource
impl UnsafeUnpin for HeaderSource
impl UnwindSafe for HeaderSource
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