Trait twitch_api2::helix::RequestPut[][src]

pub trait RequestPut: Request {
    fn create_request(
        &self,
        token: &str,
        client_id: &str
    ) -> Result<Request<Vec<u8>>, CreateRequestError> { ... }
fn parse_response(
        uri: &Uri,
        response: Response<Vec<u8>>
    ) -> Result<Self::Response, HelixRequestPutError>
    where
        Self::Response: TryFrom<StatusCode, Error = Cow<'static, str>>,
        Self: Sized
, { ... } }
This is supported on crate feature helix only.

Helix endpoint PUTs information

Provided methods

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

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

fn parse_response(
    uri: &Uri,
    response: Response<Vec<u8>>
) -> Result<Self::Response, HelixRequestPutError> where
    Self::Response: TryFrom<StatusCode, Error = Cow<'static, str>>,
    Self: Sized
[src]

Parse response. Override for different behavior

Loading content...

Implementors

Loading content...