pub struct CookieExtractor { /* private fields */ }Implementations§
Source§impl CookieExtractor
impl CookieExtractor
pub const DEFAULT_COOKIE_NAME: &'static str = "access_token"
pub fn new(cookie_name: impl Into<String>) -> Self
pub fn extract( &self, headers: &HeaderMap, ) -> Result<String, CookieExtractionError>
pub fn extract_access_token( headers: &HeaderMap, ) -> Result<String, CookieExtractionError>
Trait Implementations§
Source§impl Clone for CookieExtractor
impl Clone for CookieExtractor
Source§fn clone(&self) -> CookieExtractor
fn clone(&self) -> CookieExtractor
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 CookieExtractor
impl Debug for CookieExtractor
Auto Trait Implementations§
impl Freeze for CookieExtractor
impl RefUnwindSafe for CookieExtractor
impl Send for CookieExtractor
impl Sync for CookieExtractor
impl Unpin for CookieExtractor
impl UnwindSafe for CookieExtractor
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