1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
use super::*;
use std::collections::BTreeMap;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize, Default, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct Components {
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub security_schemes:BTreeMap<String, ReferenceOr<SecurityScheme>>,
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub responses:BTreeMap<String, ReferenceOr<Response>>,
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub parameters:BTreeMap<String, ReferenceOr<Parameter>>,
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub examples:BTreeMap<String, ReferenceOr<Example>>,
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub request_bodies:BTreeMap<String, ReferenceOr<RequestBody>>,
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub headers:BTreeMap<String, ReferenceOr<Header>>,
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub schemas:BTreeMap<String, ReferenceOr<Schema>>,
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub links:BTreeMap<String, ReferenceOr<Link>>,
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub callbacks:BTreeMap<String, ReferenceOr<Callback>>,
#[serde(flatten)]
pub extensions:BTreeMap<String, serde_json::Value>,
}
pub type Callback =BTreeMap<String, PathItem>;