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.