pub struct Components {
pub schemas: IndexMap<String, Schema>,
pub responses: IndexMap<String, Response>,
pub parameters: IndexMap<String, Parameter>,
pub examples: IndexMap<String, Example>,
pub request_bodies: IndexMap<String, RequestBody>,
pub headers: IndexMap<String, Header>,
pub security_schemes: IndexMap<String, SecurityScheme>,
pub links: IndexMap<String, Link>,
pub callbacks: IndexMap<String, Callback>,
}Expand description
Components section containing reusable schemas.
Fields§
§schemas: IndexMap<String, Schema>§responses: IndexMap<String, Response>§parameters: IndexMap<String, Parameter>§examples: IndexMap<String, Example>§request_bodies: IndexMap<String, RequestBody>§headers: IndexMap<String, Header>§security_schemes: IndexMap<String, SecurityScheme>§links: IndexMap<String, Link>§callbacks: IndexMap<String, Callback>Trait Implementations§
Source§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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonPointee for Components
impl JsonPointee for Components
Source§fn resolve(
&self,
pointer: JsonPointer<'_>,
) -> Result<&dyn JsonPointee, BadJsonPointer>
fn resolve( &self, pointer: JsonPointer<'_>, ) -> Result<&dyn JsonPointee, BadJsonPointer>
Resolves a
JsonPointer against this value.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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more