pub struct FinalBody(/* private fields */);Expand description
The merged request body. Its field is private to this module, so only
request_params builds one, and nothing writes to it afterwards.
Serialize is for wires that hand their SDK the body as bytes.
Implementations§
Source§impl FinalBody
impl FinalBody
Sourcepub fn into_body(self) -> Body
pub fn into_body(self) -> Body
The request bytes of an HTTP completion wire: the body as compact JSON.
Sourcepub fn deserialize<T: DeserializeOwned>(&self) -> Result<T, Error>
pub fn deserialize<T: DeserializeOwned>(&self) -> Result<T, Error>
The body read as T: an SDK-backed wire’s request type, or a local
runtime’s generation settings.
§Errors
When the body is not a T.
Trait Implementations§
impl StructuralPartialEq for FinalBody
Auto Trait Implementations§
impl Freeze for FinalBody
impl RefUnwindSafe for FinalBody
impl Send for FinalBody
impl Sync for FinalBody
impl Unpin for FinalBody
impl UnsafeUnpin for FinalBody
impl UnwindSafe for FinalBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.