pub struct SerialResponseParser(/* private fields */);Expand description
A SerialResponse body parser.
Implementations§
Source§impl SerialResponseParser
impl SerialResponseParser
Sourcepub async fn parse_body<T: Serialize + DeserializeOwned>(
self,
) -> Result<SerialResponse<T>>
pub async fn parse_body<T: Serialize + DeserializeOwned>( self, ) -> Result<SerialResponse<T>>
Parses the internal response body to retrieve a SerialResponse.
§Errors
If the response body does not contain a valid SerialResponse, a
parsing error will be raised. This may occur due to an incorrect format
or because the binary data contains syntactic or semantic errors.
Auto Trait Implementations§
impl Freeze for SerialResponseParser
impl !RefUnwindSafe for SerialResponseParser
impl Send for SerialResponseParser
impl Sync for SerialResponseParser
impl Unpin for SerialResponseParser
impl !UnwindSafe for SerialResponseParser
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