pub struct Components31 {
pub schemas: Option<HashMap<String, JsonSchema2020>>,
pub responses: Option<HashMap<String, Value>>,
pub parameters: Option<HashMap<String, Value>>,
pub examples: Option<HashMap<String, Value>>,
pub request_bodies: Option<HashMap<String, Value>>,
pub headers: Option<HashMap<String, Value>>,
pub security_schemes: Option<HashMap<String, SecurityScheme>>,
pub links: Option<HashMap<String, Value>>,
pub callbacks: Option<HashMap<String, Callback>>,
pub path_items: Option<HashMap<String, PathItem>>,
}Expand description
Components container (schemas, security schemes, etc.)
Fields§
§schemas: Option<HashMap<String, JsonSchema2020>>Schema definitions
responses: Option<HashMap<String, Value>>Response definitions
parameters: Option<HashMap<String, Value>>Parameter definitions
examples: Option<HashMap<String, Value>>Example definitions
request_bodies: Option<HashMap<String, Value>>Request body definitions
headers: Option<HashMap<String, Value>>Header definitions
security_schemes: Option<HashMap<String, SecurityScheme>>Security scheme definitions
links: Option<HashMap<String, Value>>Link definitions
callbacks: Option<HashMap<String, Callback>>Callback definitions
path_items: Option<HashMap<String, PathItem>>Path item definitions (new in 3.1)
Trait Implementations§
Source§impl Clone for Components31
impl Clone for Components31
Source§fn clone(&self) -> Components31
fn clone(&self) -> Components31
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 Components31
impl Debug for Components31
Source§impl Default for Components31
impl Default for Components31
Source§fn default() -> Components31
fn default() -> Components31
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Components31
impl<'de> Deserialize<'de> for Components31
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 Components31
impl RefUnwindSafe for Components31
impl Send for Components31
impl Sync for Components31
impl Unpin for Components31
impl UnwindSafe for Components31
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