Enum openapiv3::SecurityScheme[][src]

pub enum SecurityScheme {
    APIKey {
        location: APIKeyLocation,
        name: String,
    },
    HTTP {
        scheme: String,
        bearer_format: Option<String>,
    },
    OAuth2 {
        flows: OAuth2Flows,
    },
    OpenIDConnect {
        open_id_connect_url: String,
    },
}

Defines a security scheme that can be used by the operations. Supported schemes are HTTP authentication, an API key (either as a header or as a query parameter), OAuth2’s common flows (implicit, password, application and access code) as defined in RFC6749, and OpenID Connect Discovery.

Variants

APIKey
Show fields

Fields of APIKey

location: APIKeyLocationname: String
HTTP
Show fields

Fields of HTTP

scheme: Stringbearer_format: Option<String>
OAuth2
Show fields

Fields of OAuth2

flows: OAuth2Flows
OpenIDConnect
Show fields

Fields of OpenIDConnect

open_id_connect_url: String

Trait Implementations

impl Clone for SecurityScheme[src]

impl Debug for SecurityScheme[src]

impl<'de> Deserialize<'de> for SecurityScheme[src]

impl PartialEq<SecurityScheme> for SecurityScheme[src]

impl Serialize for SecurityScheme[src]

impl StructuralPartialEq for SecurityScheme[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.