[][src]Enum openapi::v2::Security

pub enum Security {
    ApiKey {
        name: String,
        location: String,
        description: Option<String>,
    },
    Oauth2 {
        flow: Flow,
        authorization_url: String,
        token_url: Option<String>,
        scopes: BTreeMap<String, String>,
        description: Option<String>,
    },
    Basic {
        description: Option<String>,
    },
}

Variants

ApiKey

Fields of ApiKey

name: Stringlocation: Stringdescription: Option<String>
Oauth2

Fields of Oauth2

flow: Flowauthorization_url: Stringtoken_url: Option<String>scopes: BTreeMap<String, String>description: Option<String>
Basic

Fields of Basic

description: Option<String>

Trait Implementations

impl Clone for Security[src]

impl Debug for Security[src]

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

impl PartialEq<Security> for Security[src]

impl Serialize for Security[src]

impl StructuralPartialEq for Security[src]

Auto Trait Implementations

impl RefUnwindSafe for Security

impl Send for Security

impl Sync for Security

impl Unpin for Security

impl UnwindSafe for Security

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.