Struct rweb::openapi::Components [−][src]
pub struct Components { pub schemas: IndexMap<Cow<'static, str>, ObjectOrReference<Schema>, RandomState>, pub responses: IndexMap<Cow<'static, str>, ObjectOrReference<Response>, RandomState>, pub parameters: IndexMap<Cow<'static, str>, ObjectOrReference<Parameter>, RandomState>, pub examples: IndexMap<Cow<'static, str>, ObjectOrReference<Example>, RandomState>, pub request_bodies: IndexMap<Cow<'static, str>, ObjectOrReference<RequestBody>, RandomState>, pub headers: IndexMap<Cow<'static, str>, ObjectOrReference<Header>, RandomState>, pub security_schemes: IndexMap<Cow<'static, str>, ObjectOrReference<SecurityScheme>, RandomState>, pub links: IndexMap<Cow<'static, str>, ObjectOrReference<Link>, RandomState>, pub callbacks: IndexMap<Cow<'static, str>, ObjectOrReference<Callback>, RandomState>, }
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.
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#componentsObject.
Fields
schemas: IndexMap<Cow<'static, str>, ObjectOrReference<Schema>, RandomState>
An object to hold reusable Schema Objects.
responses: IndexMap<Cow<'static, str>, ObjectOrReference<Response>, RandomState>
An object to hold reusable Response Objects.
parameters: IndexMap<Cow<'static, str>, ObjectOrReference<Parameter>, RandomState>
An object to hold reusable Parameter Objects.
examples: IndexMap<Cow<'static, str>, ObjectOrReference<Example>, RandomState>
An object to hold reusable Example
request_bodies: IndexMap<Cow<'static, str>, ObjectOrReference<RequestBody>, RandomState>
An object to hold reusable Request Body Objects.
headers: IndexMap<Cow<'static, str>, ObjectOrReference<Header>, RandomState>
An object to hold reusable Header Objects.
security_schemes: IndexMap<Cow<'static, str>, ObjectOrReference<SecurityScheme>, RandomState>
An object to hold reusable Security Scheme Objects.
links: IndexMap<Cow<'static, str>, ObjectOrReference<Link>, RandomState>
An object to hold reusable Link Objects.
callbacks: IndexMap<Cow<'static, str>, ObjectOrReference<Callback>, RandomState>
An object to hold reusable Callback Objects.
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Components, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Auto Trait Implementations
impl RefUnwindSafe for Components
impl Send for Components
impl Sync for Components
impl Unpin for Components
impl UnwindSafe for Components
Blanket Implementations
Mutably borrows from an owned value. Read more
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V