pub struct CookieSource(pub &'static str);Expand description
Extracts a token from a named cookie (e.g., Cookie: jwt=xxx).
The inner &'static str is the cookie name. Parses the raw Cookie
header directly — no dependency on session middleware or axum_extra.
Tuple Fields§
§0: &'static strTrait Implementations§
Source§impl TokenSource for CookieSource
impl TokenSource for CookieSource
Auto Trait Implementations§
impl Freeze for CookieSource
impl RefUnwindSafe for CookieSource
impl Send for CookieSource
impl Sync for CookieSource
impl Unpin for CookieSource
impl UnsafeUnpin for CookieSource
impl UnwindSafe for CookieSource
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