Trait poem_openapi::auth::ApiKeyAuthorization
source · pub trait ApiKeyAuthorization: Sized {
// Required method
fn from_request(
req: &Request,
query: &UrlQuery,
name: &str,
in_type: MetaParamIn
) -> Result<Self>;
}
Expand description
Represents an api key authorization extractor.
Required Methods§
sourcefn from_request(
req: &Request,
query: &UrlQuery,
name: &str,
in_type: MetaParamIn
) -> Result<Self>
fn from_request( req: &Request, query: &UrlQuery, name: &str, in_type: MetaParamIn ) -> Result<Self>
Extract from the HTTP request.