Enum openapiv3::OAuth2Flow[][src]

pub enum OAuth2Flow {
    Implicit {
        authorization_url: String,
        refresh_url: Option<String>,
        scopes: IndexMap<String, String>,
    },
    Password {
        refresh_url: Option<String>,
        token_url: String,
        scopes: IndexMap<String, String>,
    },
    ClientCredentials {
        refresh_url: Option<String>,
        token_url: String,
        scopes: IndexMap<String, String>,
    },
    AuthorizationCode {
        authorization_url: String,
        token_url: String,
        refresh_url: Option<String>,
        scopes: IndexMap<String, String>,
    },
}

Variants

Implicit
Show fields

Fields of Implicit

authorization_url: Stringrefresh_url: Option<String>scopes: IndexMap<String, String>
Password
Show fields

Fields of Password

refresh_url: Option<String>token_url: Stringscopes: IndexMap<String, String>
ClientCredentials
Show fields

Fields of ClientCredentials

refresh_url: Option<String>token_url: Stringscopes: IndexMap<String, String>
AuthorizationCode
Show fields

Fields of AuthorizationCode

authorization_url: Stringtoken_url: Stringrefresh_url: Option<String>scopes: IndexMap<String, String>

Trait Implementations

impl Clone for OAuth2Flow[src]

impl Debug for OAuth2Flow[src]

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

impl PartialEq<OAuth2Flow> for OAuth2Flow[src]

impl Serialize for OAuth2Flow[src]

impl StructuralPartialEq for OAuth2Flow[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.