EndpointOutRegister

Trait EndpointOutRegister 

Source
pub trait EndpointOutRegister {
    // 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl EndpointOutRegister for &str

Source§

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

Source§

impl EndpointOutRegister for &String

Source§

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

Source§

impl EndpointOutRegister for Error

Source§

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

Source§

impl EndpointOutRegister for String

Source§

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

Source§

impl<E> EndpointOutRegister for Result<(), E>

Source§

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

Source§

impl<T, E> EndpointOutRegister for Result<T, E>

Source§

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

Implementors§