Trait viz::IntoResponse

source ·
pub trait IntoResponse: Sized {
    fn into_response(self) -> Response<Body>;

    fn into_error(self) -> Error { ... }
}
Expand description

Trait implemented by types that can be converted to an HTTP Response.

Required Methods§

Convert self to HTTP Response.

Provided Methods§

Convert self to the Error.

Implementations on Foreign Types§

Implementors§

Responds with JSON Data.