[][src]Trait openapi_utils::ParameterExt

pub trait ParameterExt {
    fn location_string(&self) -> String;
fn parameter_data(&self) -> &ParameterData;
fn parameter_data_mut(&mut self) -> &mut ParameterData;
fn name(&self) -> &str; }

Extension methods for Parameter

Required methods

fn location_string(&self) -> String

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

fn parameter_data(&self) -> &ParameterData

borrows the internal parameter data

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

mutably borrows the internal parameter data

fn name(&self) -> &str

Returns the name of the parameter

Loading content...

Implementations on Foreign Types

impl ParameterExt for Parameter[src]

fn name(&self) -> &str[src]

Name inside the data of the parameter

fn location_string(&self) -> String[src]

Returns a string representing the enum of the parameter Parameter::Query becomes "query".

fn parameter_data(&self) -> &ParameterData[src]

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

fn parameter_data_mut(&mut self) -> &mut ParameterData[src]

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

Loading content...

Implementors

Loading content...