Struct openapiv3::RequestBody
source · [−]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
sourceimpl Clone for RequestBody
impl Clone for RequestBody
sourcefn clone(&self) -> RequestBody
fn clone(&self) -> RequestBody
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RequestBody
impl Debug for RequestBody
sourceimpl Default for RequestBody
impl Default for RequestBody
sourcefn default() -> RequestBody
fn default() -> RequestBody
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for RequestBody
impl<'de> Deserialize<'de> for RequestBody
sourcefn 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
sourceimpl PartialEq<RequestBody> for RequestBody
impl PartialEq<RequestBody> for RequestBody
sourcefn eq(&self, other: &RequestBody) -> bool
fn eq(&self, other: &RequestBody) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RequestBody) -> bool
fn ne(&self, other: &RequestBody) -> bool
This method tests for !=
.
sourceimpl Serialize for RequestBody
impl Serialize for RequestBody
impl StructuralPartialEq for RequestBody
Auto Trait Implementations
impl RefUnwindSafe for RequestBody
impl Send for RequestBody
impl Sync for RequestBody
impl Unpin for RequestBody
impl UnwindSafe for RequestBody
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more