pub struct QueryParamTokenExtractor {
pub key: String,
}Expand description
Searches the auth token in the query parameters, eg. returns <token> when looking at a request with URL https://<url>/<path>?token=<token>.
The key to be searched for is configurable. Default is: “token”.
SECURITY: This extractor should be used with caution! Only use it if you are informed about the security implication of providing tokens through query parameters.
Fields§
§key: StringImplementations§
Source§impl QueryParamTokenExtractor
impl QueryParamTokenExtractor
pub fn extracting_key(key: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for QueryParamTokenExtractor
impl Clone for QueryParamTokenExtractor
Source§fn clone(&self) -> QueryParamTokenExtractor
fn clone(&self) -> QueryParamTokenExtractor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QueryParamTokenExtractor
impl Debug for QueryParamTokenExtractor
Source§impl Default for QueryParamTokenExtractor
impl Default for QueryParamTokenExtractor
Auto Trait Implementations§
impl Freeze for QueryParamTokenExtractor
impl RefUnwindSafe for QueryParamTokenExtractor
impl Send for QueryParamTokenExtractor
impl Sync for QueryParamTokenExtractor
impl Unpin for QueryParamTokenExtractor
impl UnsafeUnpin for QueryParamTokenExtractor
impl UnwindSafe for QueryParamTokenExtractor
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