Trait salvo::prelude::endpoint::EndpointOutRegister

source ·
pub trait EndpointOutRegister {
    // Required method
    fn register(components: &mut Components, operation: &mut Operation);
}
Available on crate feature oapi only.
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 EndpointOutRegister for &'static str

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<'a> EndpointOutRegister for &'a 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§