Skip to main content

IntoResponse

Trait IntoResponse 

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

Required Methods§

Implementations on Foreign Types§

Source§

impl IntoResponse for &'static str

Source§

impl IntoResponse for (StatusCode, &'static str)

Source§

impl IntoResponse for (StatusCode, String)

Source§

impl IntoResponse for (StatusCode, Bytes)

Source§

impl IntoResponse for Value

Source§

impl IntoResponse for ()

Source§

impl IntoResponse for String

Source§

impl IntoResponse for Bytes

Implementors§

Source§

impl IntoResponse for HttpResponse

Source§

impl<S, E> IntoResponse for Sse<S>
where S: Stream<Item = Result<SseEvent, E>> + Send + Sync + Unpin + 'static, E: Into<Box<dyn Error + Send + Sync>> + Send + Sync + 'static,