Struct opg::models::OperationParameter
source · pub struct OperationParameter {
pub description: Option<String>,
pub parameter_in: ParameterIn,
pub required: bool,
pub deprecated: bool,
pub schema: Option<ModelReference>,
}
Expand description
Parameter Object
Fields§
§description: Option<String>
A brief description of the parameter
parameter_in: ParameterIn
The location of the parameter
required: bool
Determines whether this parameter is mandatory
If the parameter location is “path”, this property is REQUIRED and its value MUST be true. Otherwise, the property MAY be included and its default value is false.
deprecated: bool
Declares this parameter to be deprecated
schema: Option<ModelReference>
The schema defining the type used for the parameter
Trait Implementations§
source§impl Clone for OperationParameter
impl Clone for OperationParameter
source§fn clone(&self) -> OperationParameter
fn clone(&self) -> OperationParameter
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