Trait openapi_utils::ParameterExt
source · pub trait ParameterExt {
// Required methods
fn location_string(&self) -> String;
fn parameter_data_mut(&mut self) -> &mut ParameterData;
fn name(&self) -> &str;
}
Expand description
Extension methods for Parameter
Required Methods§
sourcefn location_string(&self) -> String
fn location_string(&self) -> String
Returns “query”, “header”, “path” or “cookie” depending on where the parameter lives in
sourcefn parameter_data_mut(&mut self) -> &mut ParameterData
fn parameter_data_mut(&mut self) -> &mut ParameterData
mutably borrows the internal parameter data
Implementations on Foreign Types§
source§impl ParameterExt for Parameter
impl ParameterExt for Parameter
source§fn location_string(&self) -> String
fn location_string(&self) -> String
Returns a string representing the enum of the parameter
Parameter::Query
becomes “query”.
source§fn parameter_data_mut(&mut self) -> &mut ParameterData
fn parameter_data_mut(&mut self) -> &mut ParameterData
Convenience method to access the internal parameter data independent from the kind of paramete we are using, mutable context.