[][src]Struct oas3::Components

pub struct Components {
    pub schemas: BTreeMap<String, ObjectOrReference<Schema>>,
    pub responses: BTreeMap<String, ObjectOrReference<Response>>,
    pub parameters: BTreeMap<String, ObjectOrReference<Parameter>>,
    pub examples: BTreeMap<String, ObjectOrReference<Example>>,
    pub request_bodies: BTreeMap<String, ObjectOrReference<RequestBody>>,
    pub headers: BTreeMap<String, ObjectOrReference<Header>>,
    pub security_schemes: BTreeMap<String, ObjectOrReference<SecurityScheme>>,
    pub links: BTreeMap<String, ObjectOrReference<Link>>,
    pub callbacks: BTreeMap<String, ObjectOrReference<Callback>>,
}

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.

See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#componentsObject.

Fields

schemas: BTreeMap<String, ObjectOrReference<Schema>>

An object to hold reusable Schema Objects.

responses: BTreeMap<String, ObjectOrReference<Response>>

An object to hold reusable Response Objects.

parameters: BTreeMap<String, ObjectOrReference<Parameter>>

An object to hold reusable Parameter Objects.

examples: BTreeMap<String, ObjectOrReference<Example>>

An object to hold reusable Example

request_bodies: BTreeMap<String, ObjectOrReference<RequestBody>>

An object to hold reusable Request Body Objects.

headers: BTreeMap<String, ObjectOrReference<Header>>

An object to hold reusable Header Objects.

security_schemes: BTreeMap<String, ObjectOrReference<SecurityScheme>>

An object to hold reusable Security Scheme Objects.

links: BTreeMap<String, ObjectOrReference<Link>>

An object to hold reusable Link Objects.

callbacks: BTreeMap<String, ObjectOrReference<Callback>>

An object to hold reusable Callback Objects.

Trait Implementations

impl Clone for Components[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for Components[src]

impl PartialEq<Components> for Components[src]

impl Debug for Components[src]

impl Serialize for Components[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]