Trait twitch_api2::helix::RequestPut [−][src]
pub trait RequestPut: Request where
Self::Response: TryFrom<StatusCode, Error = Cow<'static, str>>, { type Body: HelixRequestBody; fn create_request(
&self,
body: Self::Body,
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: Sized, { ... } }
This is supported on crate feature
helix
only.Helix endpoint PUTs information
Associated Types
type Body: HelixRequestBody
[src]
Body parameters
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(
uri: &Uri,
response: Response<Vec<u8>>
) -> Result<Self::Response, HelixRequestPutError> where
Self: Sized,
[src]
uri: &Uri,
response: Response<Vec<u8>>
) -> Result<Self::Response, HelixRequestPutError> where
Self: Sized,
Parse response.
Implementors
impl RequestPut for ReplaceStreamTagsRequest
[src]
impl RequestPut for ReplaceStreamTagsRequest
[src]type Body = ReplaceStreamTagsBody
impl RequestPut for BlockUserRequest
[src]
impl RequestPut for BlockUserRequest
[src]