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§

source

fn location_string(&self) -> String

Returns “query”, “header”, “path” or “cookie” depending on where the parameter lives in

source

fn parameter_data_mut(&mut self) -> &mut ParameterData

mutably borrows the internal parameter data

source

fn name(&self) -> &str

Returns the name of the parameter

Implementations on Foreign Types§

source§

impl ParameterExt for Parameter

source§

fn name(&self) -> &str

Name inside the data of the parameter

source§

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

Convenience method to access the internal parameter data independent from the kind of paramete we are using, mutable context.

Implementors§