Trait poem_openapi::SecurityScheme[][src]

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

    fn register(registry: &mut Registry);
fn from_request<'life0, 'life1, 'async_trait>(
        req: &'life0 Request,
        query: &'life1 HashMap<String, String>
    ) -> Pin<Box<dyn Future<Output = Result<Self, ParseRequestError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
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