pub struct Response {
pub reference: Option<String>,
pub summary: Option<String>,
pub description: Option<String>,
pub headers: Option<BTreeMap<String, Header>>,
pub content: Option<BTreeMap<String, MediaType>>,
pub links: Option<BTreeMap<String, Link>>,
pub schema: Option<Schema>,
}Expand description
Response from an API operation.
Describes a single response from an operation, including headers, content, and links.
Fields§
§reference: Option<String>Reference to a response definition.
summary: Option<String>Short summary of the response.
description: Option<String>Description of the response. CommonMark syntax may be used.
headers: Option<BTreeMap<String, Header>>Response headers, keyed by header name.
content: Option<BTreeMap<String, MediaType>>Response content, keyed by media type (e.g., “application/json”).
links: Option<BTreeMap<String, Link>>Links to operations that can be followed from this response.
schema: Option<Schema>Schema for the response (Swagger v2 only).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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 Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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