1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
use super::*;

/// ## The OpenApi [security scheme object](https://swagger.io/specification/#security-scheme-object)
#[derive(Debug, PartialEq, Serialize, Deserialize, Clone, Sparsable, OApiCheck)]
#[serde(rename_all = "camelCase")]
#[serde(tag = "type")]
pub enum OApiSecurityScheme {
    ApiKey(OApiSecuritySchemeApiKey),
    Http(OApiSecuritySchemeHttp),
    Oauth2(Box<OApiSecuritySchemeOauth2>), // Boxed to reduce the size of the enum
    OpenIdConnect(OApiSecuritySchemeOpenIdConnect),
}