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
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]
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestPatchError> where
Self: Sized,
Parse a response string into the response.
Provided methods
fn create_request(
&self,
body: Self::Body,
token: &str,
client_id: &str
) -> Result<Request<Vec<u8>>, CreateRequestError>
[src]
&self,
body: Self::Body,
token: &str,
client_id: &str
) -> Result<Request<Vec<u8>>, CreateRequestError>
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]
request: Option<Self>,
uri: &Uri,
response: Response<Vec<u8>>
) -> Result<Response<Self, Self::Response>, HelixRequestPatchError> where
Self: Sized,
Implementors
impl RequestPatch for ModifyChannelInformationRequest
[src]
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]
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestPatchError> where
Self: Sized,
impl RequestPatch for UpdateCustomRewardRequest
[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]
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestPatchError> where
Self: Sized,
impl RequestPatch for UpdateRedemptionStatusRequest
[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]
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestPatchError> where
Self: Sized,