/// Parse a response string into the response.
Parse a response string into the response.
Parse a response string into the response .
fn parse_inner_response(
        request: Option<Self>,
        uri: &http::Uri,
        response: &str,
        status: http::StatusCode,
    ) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestPostError>
    where
        Self: Sized,
    {
        let response: InnerResponse<<Self as Request>::Response> = parse_json(response, true)
            .map_err(|e| {
                HelixRequestPostError::DeserializeError(
                    response.to_string(),
                    e,
                    uri.clone(),
                    status,
                )
            })?;
        Ok(Response {
            data: response.data,
            pagination: response.pagination.cursor,
            request,
            total: response.total,
        })
    }
fn parse_inner_response ( request : Option < Self > , uri : & http :: Uri , response : & str , status : http :: StatusCode , ) -> Result < Response < Self , < Self as Request > :: Response > , HelixRequestPostError > where Self : Sized , { let response : InnerResponse < < Self as Request > :: Response > = parse_json ( response , true ) . map_err ( | e | { HelixRequestPostError :: DeserializeError ( response . to_string ( ) , e , uri . clone ( ) , status , ) } ) ? ; Ok ( Response { data : response . data , pagination : response . pagination . cursor , request , total : response . total , } ) }
Parse a response string into the response.
Parse a response string into the response .
request
Option<Self>
uri
&http::Uri
response
&str
status
http::StatusCode