pub struct RequestBody {
pub description: Option<String>,
pub content: Option<IndexMap<String, MediaType>>,
pub required: Option<bool>,
}
Fields§
§description: Option<String>
§content: Option<IndexMap<String, MediaType>>
§required: Option<bool>
Trait Implementations§
Source§impl Clone for RequestBody
impl Clone for RequestBody
Source§fn clone(&self) -> RequestBody
fn clone(&self) -> RequestBody
Returns a copy 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 ComponentContainer<RequestBody> for HttpSchemaDiffContext
impl ComponentContainer<RequestBody> for HttpSchemaDiffContext
fn deref_source(&self, reference: &str) -> Option<&RequestBody>
fn deref_target(&self, reference: &str) -> Option<&RequestBody>
Source§impl Debug for RequestBody
impl Debug for RequestBody
Source§impl<'de> Deserialize<'de> for RequestBody
impl<'de> Deserialize<'de> for RequestBody
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 Diff<RequestBody, RequestBodyDiff, HttpSchemaDiffContext> for RequestBody
impl Diff<RequestBody, RequestBodyDiff, HttpSchemaDiffContext> for RequestBody
fn diff( &self, new: Option<&RequestBody>, context: &HttpSchemaDiffContext, ) -> DiffResult<RequestBodyDiff>
Auto Trait Implementations§
impl Freeze for RequestBody
impl RefUnwindSafe for RequestBody
impl Send for RequestBody
impl Sync for RequestBody
impl Unpin for RequestBody
impl UnwindSafe for RequestBody
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