Skip to main content

IntoResponse

Trait IntoResponse 

Source
pub trait IntoResponse {
    // Required method
    fn into_response(self) -> Response;
}
Expand description

Convert a value into an HTTP response.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoResponse for &str

Source§

impl IntoResponse for ()

Source§

impl IntoResponse for String

Source§

impl<T: IntoResponse> IntoResponse for (u16, T)

Source§

impl<T: IntoResponse> IntoResponse for Option<T>

Implementors§