pub enum JwtSource {
AuthorizationHeader,
Cookie(String),
}
Expand description
Source of the bearer token
Variants§
AuthorizationHeader
Storing the bearer token in Authorization header
(default)
Cookie(String)
Cookies
(be careful when using cookies, some precautions must be taken, cf. RFC6750)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JwtSource
impl RefUnwindSafe for JwtSource
impl Send for JwtSource
impl Sync for JwtSource
impl Unpin for JwtSource
impl UnwindSafe for JwtSource
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