Struct poem_openapi::auth::ApiKey
source · [−]pub struct ApiKey {
pub key: String,
}
Expand description
Used to extract the Api Key from the request.
Fields
key: String
Api key
Trait Implementations
fn 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.
Auto Trait Implementations
impl RefUnwindSafe for ApiKey
impl UnwindSafe for ApiKey
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more