pub struct RequestBodyObject {
pub description: Option<String>,
pub content: RequestBodyContent,
pub required: bool,
}
Expand description
https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#request-body-object
Fields§
§description: Option<String>
§content: RequestBodyContent
REQUIRED. The content of the request body.
required: bool
Determines if the request body is required in the request. Defaults to false.
Implementations§
Source§impl RequestBodyObject
impl RequestBodyObject
pub fn from_yaml_map(map: YamlMap) -> Result<RequestBodyObject>
Trait Implementations§
Source§impl Clone for RequestBodyObject
impl Clone for RequestBodyObject
Source§fn clone(&self) -> RequestBodyObject
fn clone(&self) -> RequestBodyObject
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for RequestBodyObject
impl RefUnwindSafe for RequestBodyObject
impl Send for RequestBodyObject
impl Sync for RequestBodyObject
impl Unpin for RequestBodyObject
impl UnwindSafe for RequestBodyObject
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