Trait twitch_api2::helix::RequestPatch[][src]

pub trait RequestPatch: Request {
    type Body: HelixRequestBody;
    fn parse_inner_response(
        request: Option<Self>,
        uri: &Uri,
        response: &str,
        status: StatusCode
    ) -> Result<Response<Self, Self::Response>, HelixRequestPatchError>
    where
        Self: Sized
; fn create_request(
        &self,
        body: Self::Body,
        token: &str,
        client_id: &str
    ) -> Result<Request<Vec<u8>>, CreateRequestError> { ... }
fn parse_response(
        request: Option<Self>,
        uri: &Uri,
        response: Response<Vec<u8>>
    ) -> Result<Response<Self, Self::Response>, HelixRequestPatchError>
    where
        Self: Sized
, { ... } }
This is supported on crate feature helix only.

Helix endpoint PATCHs information

Associated Types

type Body: HelixRequestBody[src]

Body parameters

Loading content...

Required methods

fn parse_inner_response(
    request: Option<Self>,
    uri: &Uri,
    response: &str,
    status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestPatchError> where
    Self: Sized
[src]

Parse a response string into the response.

Loading content...

Provided methods

fn create_request(
    &self,
    body: Self::Body,
    token: &str,
    client_id: &str
) -> Result<Request<Vec<u8>>, CreateRequestError>
[src]

Create a http::Request from this Request in your client

fn parse_response(
    request: Option<Self>,
    uri: &Uri,
    response: Response<Vec<u8>>
) -> Result<Response<Self, Self::Response>, HelixRequestPatchError> where
    Self: Sized
[src]

Parse response.

Notes

Pass in the request to enable pagination if supported.

Loading content...

Implementors

impl RequestPatch for ModifyChannelInformationRequest[src]

type Body = ModifyChannelInformationBody

fn parse_inner_response(
    request: Option<Self>,
    uri: &Uri,
    response: &str,
    status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestPatchError> where
    Self: Sized
[src]

impl RequestPatch for UpdateCustomRewardRequest[src]

type Body = UpdateCustomRewardBody

fn parse_inner_response(
    request: Option<Self>,
    uri: &Uri,
    response: &str,
    status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestPatchError> where
    Self: Sized
[src]

impl RequestPatch for UpdateRedemptionStatusRequest[src]

type Body = UpdateRedemptionStatusBody

fn parse_inner_response(
    request: Option<Self>,
    uri: &Uri,
    response: &str,
    status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestPatchError> where
    Self: Sized
[src]

Loading content...