Skip to main content

AsResponse

Trait AsResponse 

Source
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§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§