[][src]Enum rweb::openapi::SecurityScheme

pub enum SecurityScheme {
    ApiKey {
        name: Cow<'static, str>,
        location: Cow<'static, str>,
    },
    Http {
        scheme: Cow<'static, str>,
        bearer_format: Cow<'static, str>,
    },
    OAuth2 {
        flows: Flows,
    },
    OpenIdConnect {
        open_id_connect_url: Cow<'static, str>,
    },
}

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: Cow<'static, str>location: Cow<'static, str>
Http

Fields of Http

scheme: Cow<'static, str>bearer_format: Cow<'static, str>
OAuth2

Fields of OAuth2

flows: Flows
OpenIdConnect

Fields of OpenIdConnect

open_id_connect_url: Cow<'static, str>

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,