Struct elastic_responses::ReadBody
[−]
[src]
pub struct ReadBody<B>(_);
A HTTP response body that implements Read
.
Trait Implementations
impl<B: Read> ResponseBody for ReadBody<B>
[src]
type Buffered = SliceBody<Vec<u8>>
The type of a buffered response body.
fn body(self) -> Result<(Value, Self::Buffered), ParseResponseError>
Buffer the response body to a json value and return a new buffered representation.
fn parse_ok<T: DeserializeOwned>(self) -> Result<T, ParseResponseError>
Parse the body as a success result.
fn parse_err(self) -> Result<ApiError, ParseResponseError>
Parse the body as an API error.