Struct opg::models::RequestBody
source · pub struct RequestBody {
pub description: Option<String>,
pub required: bool,
pub schema: ModelReference,
}
Expand description
Request Body Object
Fields§
§description: Option<String>
A brief description of the request body
required: bool
Determines if the request body is required in the request. Defaults to true.
schema: ModelReference
The content of the request body
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 more