pub struct Components {
pub security_schemes: RefOrMap<SecurityScheme>,
pub responses: RefOrMap<Response>,
pub parameters: RefOrMap<Parameter>,
pub examples: RefOrMap<Example>,
pub request_bodies: RefOrMap<RequestBody>,
pub headers: RefOrMap<Header>,
pub schemas: RefOrMap<Schema>,
pub links: RefOrMap<Link>,
pub callbacks: RefOrMap<IndexMap<String, PathItem>>,
pub extensions: IndexMap<String, Value>,
}
Expand description
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§
§security_schemes: RefOrMap<SecurityScheme>
An object to hold reusable Security Scheme Objects.
responses: RefOrMap<Response>
An object to hold reusable Response Objects.
parameters: RefOrMap<Parameter>
An object to hold reusable Parameter Objects.
examples: RefOrMap<Example>
An object to hold reusable Example Objects.
request_bodies: RefOrMap<RequestBody>
An object to hold reusable Request Body Objects.
headers: RefOrMap<Header>
An object to hold reusable Header Objects.
schemas: RefOrMap<Schema>
An object to hold reusable Schema Objects.
links: RefOrMap<Link>
An object to hold reusable Link Objects.
callbacks: RefOrMap<IndexMap<String, PathItem>>
An object to hold reusable Callback Objects.
extensions: IndexMap<String, Value>
Inline extensions to this object.
Implementations§
Trait Implementations§
Source§impl Clone for Components
impl Clone for Components
Source§fn clone(&self) -> Components
fn clone(&self) -> Components
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Components
impl Debug for Components
Source§impl Default for Components
impl Default for Components
Source§fn default() -> Components
fn default() -> Components
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Components
impl<'de> Deserialize<'de> for Components
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Components, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Components, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Components
impl PartialEq for Components
Source§impl Serialize for Components
impl Serialize for Components
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Components
Auto Trait Implementations§
impl Freeze for Components
impl RefUnwindSafe for Components
impl Send for Components
impl Sync for Components
impl Unpin for Components
impl UnwindSafe for Components
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more