pub struct Components {
pub schemas: HashMap<String, RefOr<Schema>>,
pub responses: HashMap<String, RefOr<Response>>,
pub parameters: HashMap<String, RefOr<Parameter>>,
pub examples: HashMap<String, RefOr<Example>>,
pub request_bodies: HashMap<String, RefOr<RequestBody>>,
pub headers: HashMap<String, RefOr<Parameter>>,
pub security_schemes: HashMap<String, RefOr<SecurityScheme>>,
pub links: HashMap<String, RefOr<Link>>,
pub callbacks: HashMap<String, RefOr<Callback>>,
pub x_fields: HashMap<String, Value>,
}
Expand description
Components Object
Holds a set of reusable objects for different aspects of the OAS. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object.
Fields§
§schemas: HashMap<String, RefOr<Schema>>
An object to hold reusable Schema Objects.
responses: HashMap<String, RefOr<Response>>
An object to hold reusable Response Objects.
parameters: HashMap<String, RefOr<Parameter>>
An object to hold reusable Parameter Objects.
examples: HashMap<String, RefOr<Example>>
An object to hold reusable Example Objects.
request_bodies: HashMap<String, RefOr<RequestBody>>
An object to hold reusable Request Body Objects.
headers: HashMap<String, RefOr<Parameter>>
An object to hold reusable Header Objects.
security_schemes: HashMap<String, RefOr<SecurityScheme>>
An object to hold reusable Security Scheme Objects.
links: HashMap<String, RefOr<Link>>
An object to hold reusable Link Objects.
callbacks: HashMap<String, RefOr<Callback>>
An object to hold reusable Callback Objects.
x_fields: HashMap<String, Value>
Allows extensions to the Swagger Schema. The field name MUST begin with x-, for example, x-internal-id. The value can be null, a primitive, an array or an object. See Vendor Extensions for further details.
Trait Implementations§
Source§impl Clone for Components
impl Clone for Components
Source§fn clone(&self) -> Components
fn clone(&self) -> Components
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more