pub struct Components {
pub schemas: HashMap<String, Schema>,
pub responses: HashMap<String, Response>,
pub parameters: HashMap<String, Parameter>,
pub examples: HashMap<String, Example>,
pub request_bodies: HashMap<String, RequestBody>,
pub headers: HashMap<String, Header>,
pub security_schemes: HashMap<String, SecurityScheme>,
pub links: HashMap<String, Link>,
}Expand description
Reusable components
Fields§
§schemas: HashMap<String, Schema>Reusable schemas
responses: HashMap<String, Response>Reusable responses
parameters: HashMap<String, Parameter>Reusable parameters
examples: HashMap<String, Example>Reusable examples
request_bodies: HashMap<String, RequestBody>Reusable request bodies
headers: HashMap<String, Header>Reusable headers
security_schemes: HashMap<String, SecurityScheme>Security schemes
links: HashMap<String, Link>Reusable links
Trait Implementations§
Source§impl Clone for Components
impl Clone for Components
Source§fn clone(&self) -> Components
fn clone(&self) -> Components
Returns a duplicate 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<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
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