From db0f5b3a636b87528837f1fe15d106905e4317dc Mon Sep 17 00:00:00 2001 From: Brian H Date: Thu, 26 Oct 2023 14:57:04 -0600 Subject: [PATCH] Add into_inner for chaining Signed-off-by: Brian H --- sdk/rust/src/http.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdk/rust/src/http.rs b/sdk/rust/src/http.rs index bd7a19278..60ce18ea1 100644 --- a/sdk/rust/src/http.rs +++ b/sdk/rust/src/http.rs @@ -488,6 +488,11 @@ impl ResponseOutparam { self.set(response); body.send(buffer).await } + + /// Return the inner, `wit-bindgen`-generated instance + pub fn into_inner(self) -> types::ResponseOutparam { + self.0 + } } /// Send an outgoing request