From 2eff23f3d908c177b8ecc03c4a8af0f8080d7a80 Mon Sep 17 00:00:00 2001 From: Ryan Eno Date: Wed, 8 Oct 2025 22:02:36 -0700 Subject: [PATCH] Add Into reqwest response This adds flexibility and compatibility for any library trying to use`impl Into`. --- elasticsearch/src/http/response.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/elasticsearch/src/http/response.rs b/elasticsearch/src/http/response.rs index 071d4311..ccc481d6 100644 --- a/elasticsearch/src/http/response.rs +++ b/elasticsearch/src/http/response.rs @@ -164,6 +164,12 @@ impl fmt::Debug for Response { } } +impl Into for Response { + fn into(self) -> reqwest::Response { + self.response + } +} + /// An exception raised by Elasticsearch. /// /// Contains details that indicate why the exception was raised which can help to determine