Skip to main content

IntoResponse

Trait IntoResponse 

Source
pub trait IntoResponse {
    // Required method
    fn into_response(self) -> 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 &'static str

Source§

impl IntoResponse for StatusCode

Source§

impl IntoResponse for String

Source§

impl IntoResponse for Value

Source§

impl<T: IntoResponse, E: IntoResponse> IntoResponse for Result<T, E>

Source§

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

Implementors§