[][src]Enum openapi::v3_0::SecurityScheme

pub enum SecurityScheme {
    ApiKey {
        name: String,
        location: String,
    },
    Http {
        scheme: String,
        bearer_format: String,
    },
    OAuth2 {
        flows: Flows,
    },
    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.

See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#securitySchemeObject.

Variants

ApiKey

Fields of ApiKey

name: Stringlocation: String
Http

Fields of Http

scheme: Stringbearer_format: String
OAuth2

Fields of OAuth2

flows: Flows
OpenIdConnect

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

impl RefUnwindSafe for SecurityScheme

impl Send for SecurityScheme

impl Sync for SecurityScheme

impl Unpin for SecurityScheme

impl UnwindSafe for SecurityScheme

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.