IntoResponse

0.2~0.3 版本

impl IntoResponse for AppError {
    type Body = Full<Bytes>;
    type BodyError = Infallible;

    fn into_response(self) -> axum::http::Response<Self::Body> {
        self.message.into_response()
    }
}

0.4 版本

要查看完整内容,请先登录