[][src]Trait openapi_utils::OperationExt

pub trait OperationExt {
    fn response(&self, status: u16) -> Option<&Response>;
fn required_parameters(&self) -> Vec<&Parameter>;
fn optional_parameters(&self) -> Vec<&Parameter>; }

Extension methods for Operation

Required methods

fn response(&self, status: u16) -> Option<&Response>

For this operation object which contains multiple responses returns the response which will be returned in the service

fn required_parameters(&self) -> Vec<&Parameter>

Returns all the required parameters of this operation

fn optional_parameters(&self) -> Vec<&Parameter>

Returns all the optional parameters of this operation

Loading content...

Implementations on Foreign Types

impl OperationExt for Operation[src]

fn response(&self, status: u16) -> Option<&Response>[src]

Gets the response for a status code in the operation

Loading content...

Implementors

Loading content...