pub trait AsResponse:
'static
+ DeserializeOwned
+ Serialize
+ Send
+ Sync {
// Required method
fn to_response(self) -> Response;
}Expand description
The trait to convert to Response
Required Methods§
fn to_response(self) -> Response
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".