Trait poem_openapi::SecurityScheme[][src]

pub trait SecurityScheme: Sized {
    const NAME: &'static str;

    fn register(registry: &mut Registry);
fn from_request(
        req: &Request,
        query: &HashMap<String, String>
    ) -> Result<Self, ParseRequestError>; }
Expand description

Represents a OpenAPI security scheme.

Associated Constants

The name of security scheme.

Required methods

Register this security scheme type to registry.

Parse authorization information from request.

Implementations on Foreign Types

Implementors