Trait hypers_openapi::HandlerOut

source ·
pub trait HandlerOut {
    // Required method
    fn register(components: &mut Components, operation: &mut Operation);
}
Expand description

A trait for endpoint return type register.

Required Methods§

source

fn register(components: &mut Components, operation: &mut Operation)

Modify the OpenApi components section or current operation information with given argument. This function is called by macros internal.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl HandlerOut for &'static str

source§

fn register(components: &mut Components, operation: &mut Operation)

source§

impl HandlerOut for String

source§

fn register(components: &mut Components, operation: &mut Operation)

source§

impl HandlerOut for StatusCode

source§

fn register(components: &mut Components, operation: &mut Operation)

source§

impl<'a> HandlerOut for &'a String

source§

fn register(components: &mut Components, operation: &mut Operation)

source§

impl<E> HandlerOut for Result<(), E>
where E: HandlerOut + Send,

source§

fn register(components: &mut Components, operation: &mut Operation)

source§

impl<T, E> HandlerOut for Result<T, E>
where T: HandlerOut + Send, E: HandlerOut + Send,

source§

fn register(components: &mut Components, operation: &mut Operation)

Implementors§