Struct openapiv3::RequestBody [−][src]
pub struct RequestBody { pub description: Option<String>, pub content: IndexMap<String, MediaType>, pub required: bool, pub extensions: IndexMap<String, Value>, }
Fields
description: Option<String>
A brief description of the request body. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.
content: IndexMap<String, MediaType>
REQUIRED. The content of the request body. The key is a media type or media type range and the value describes it. For requests that match multiple keys, only the most specific key is applicable. e.g. text/plain overrides text/*
required: bool
Determines if the request body is required in the request. Defaults to false.
extensions: IndexMap<String, Value>
Inline extensions to this object.
Trait Implementations
impl Clone for RequestBody
[src]
impl Clone for RequestBody
[src]fn clone(&self) -> RequestBody
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for RequestBody
[src]
impl Default for RequestBody
[src]fn default() -> RequestBody
[src]
impl<'de> Deserialize<'de> for RequestBody
[src]
impl<'de> Deserialize<'de> for RequestBody
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<RequestBody> for RequestBody
[src]
impl PartialEq<RequestBody> for RequestBody
[src]fn eq(&self, other: &RequestBody) -> bool
[src]
fn ne(&self, other: &RequestBody) -> bool
[src]
impl Serialize for RequestBody
[src]
impl Serialize for RequestBody
[src]impl StructuralPartialEq for RequestBody
[src]
impl StructuralPartialEq for RequestBody
[src]Auto Trait Implementations
impl RefUnwindSafe for RequestBody
impl RefUnwindSafe for RequestBody
impl Send for RequestBody
impl Send for RequestBody
impl Sync for RequestBody
impl Sync for RequestBody
impl Unpin for RequestBody
impl Unpin for RequestBody
impl UnwindSafe for RequestBody
impl UnwindSafe for RequestBody
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]