Skip to main content

ApiKeySpec

Trait ApiKeySpec 

Source
pub trait ApiKeySpec:
    Send
    + Sync
    + 'static {
    const NAME: &'static str;
    const LOCATION: ApiKeyLocation;
    const SCHEME: &'static str;
}
Expand description

Describes one API-key scheme; implement on a marker type.

Required Associated Constants§

Source

const NAME: &'static str

Header, query-parameter or cookie name.

Source

const LOCATION: ApiKeyLocation

Where the key is carried.

Source

const SCHEME: &'static str

Name under components.securitySchemes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§