oapi/objects/security_scheme_api_key.rs
1use super::*;
2
3/// ## Parameter for Api Key security scheme
4#[derive(
5 Debug, PartialEq, Serialize, Deserialize, Clone, Getters, Sparsable, OApiCheck, OApiExt,
6)]
7#[getset(get = "pub")]
8#[serde(rename_all = "camelCase")]
9pub struct OApiSecuritySchemeApiKey {
10 /// Description of the api key
11 description: Option<String>,
12 /// Name of the header or cookie parameter
13 name: String,
14 /// Location of the Api Key
15 #[serde(rename = "in")]
16 in_: OApiApiKeyLocation,
17 /// Extensions, if any
18 #[serde(flatten)]
19 #[getset(get)]
20 _extension: HashMap<String, Value>,
21}