[−][src]Struct rweb::openapi::Components
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
impl Clone for Components
[src]
pub fn clone(&self) -> Components
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Components
[src]
impl Default for Components
[src]
pub fn default() -> Components
[src]
impl<'de> Deserialize<'de> for Components
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Components, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Components, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl PartialEq<Components> for Components
[src]
pub fn eq(&self, other: &Components) -> bool
[src]
pub fn ne(&self, other: &Components) -> bool
[src]
impl Serialize for Components
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralPartialEq for Components
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub 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;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub 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;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Instrument for T
[src]
pub 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;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub 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;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,