pub struct Components {
pub schemas: BTreeMap<String, Schema>,
pub responses: BTreeMap<String, Response>,
pub parameters: BTreeMap<String, Parameter>,
pub examples: BTreeMap<String, Example>,
pub request_bodies: BTreeMap<String, RequestBody>,
pub headers: BTreeMap<String, Header>,
pub security_schemes: BTreeMap<String, SecurityScheme>,
pub links: BTreeMap<String, Link>,
pub callbacks: BTreeMap<String, Callback>,
}Expand description
组件定义
Fields§
§schemas: BTreeMap<String, Schema>Schema 定义
responses: BTreeMap<String, Response>响应定义
parameters: BTreeMap<String, Parameter>参数定义
examples: BTreeMap<String, Example>示例定义
request_bodies: BTreeMap<String, RequestBody>请求体定义
headers: BTreeMap<String, Header>头部定义
security_schemes: BTreeMap<String, SecurityScheme>安全方案定义
links: BTreeMap<String, Link>链接定义
callbacks: BTreeMap<String, Callback>回调定义
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 UnsafeUnpin 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