pub trait EndpointOutRegister {
// Required method
fn register(components: &mut Components, operation: &mut Operation);
}Expand description
A trait for endpoint return type register.
Required Methods§
Sourcefn register(components: &mut Components, operation: &mut Operation)
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
impl EndpointOutRegister for &str
fn register(components: &mut Components, operation: &mut Operation)
Source§impl EndpointOutRegister for &String
impl EndpointOutRegister for &String
fn register(components: &mut Components, operation: &mut Operation)
Source§impl EndpointOutRegister for Error
impl EndpointOutRegister for Error
fn register(components: &mut Components, operation: &mut Operation)
Source§impl EndpointOutRegister for String
impl EndpointOutRegister for String
fn register(components: &mut Components, operation: &mut Operation)
Source§impl EndpointOutRegister for Error
Available on crate feature anyhow only.
impl EndpointOutRegister for Error
Available on crate feature
anyhow only.fn register(components: &mut Components, operation: &mut Operation)
Source§impl EndpointOutRegister for StatusError
impl EndpointOutRegister for StatusError
fn register(components: &mut Components, operation: &mut Operation)
Source§impl<C> EndpointOutRegister for Json<C>where
C: ToSchema,
impl<C> EndpointOutRegister for Json<C>where
C: ToSchema,
fn register(components: &mut Components, operation: &mut Operation)
Source§impl<E> EndpointOutRegister for Result<(), E>where
E: EndpointOutRegister + Send,
impl<E> EndpointOutRegister for Result<(), E>where
E: EndpointOutRegister + Send,
fn register(components: &mut Components, operation: &mut Operation)
Source§impl<T, E> EndpointOutRegister for Result<T, E>
impl<T, E> EndpointOutRegister for Result<T, E>
fn register(components: &mut Components, operation: &mut Operation)
Implementors§
impl EndpointOutRegister for ServerError
Available on crate feature
salvo and crate feature mresult and neither WebAssembly nor WebAssembly only.impl EndpointOutRegister for File
Available on crate feature
salvo only.impl EndpointOutRegister for Html
Available on crate feature
salvo only.impl EndpointOutRegister for OK
Available on crate feature
salvo only.impl EndpointOutRegister for Plain
Available on crate feature
salvo only.impl EndpointOutRegister for StatusCode
impl<T> EndpointOutRegister for impulse_utils::responses::Json<T>
Available on crate feature
salvo only.impl<T> EndpointOutRegister for MsgPack<T>
Available on crate feature
salvo only.