Struct openapi_schema::v3::Response
source · pub struct Response {
pub description: String,
pub headers: Option<BTreeMap<String, RefOrObject<Header>>>,
pub content: Option<BTreeMap<String, Media>>,
pub links: Option<BTreeMap<String, RefOrObject<Link>>>,
pub extensions: Extensions,
}
Expand description
Reponse
Describes a single response from an API Operation, including design-time, static links to operations based on the response.
Fields§
§description: String
A short description of the response.
headers: Option<BTreeMap<String, RefOrObject<Header>>>
Maps a header name to its definition.
content: Option<BTreeMap<String, Media>>
A map containing descriptions of potential response payloads.
links: Option<BTreeMap<String, RefOrObject<Link>>>
A map of operations links that can be followed from the response.
extensions: Extensions
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
source§impl PartialEq<Response> for Response
impl PartialEq<Response> for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin 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