Trait twitch_api2::helix::RequestGet [−][src]
pub trait RequestGet: Request { fn create_request(
&self,
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>, HelixRequestGetError>
where
Self: Sized, { ... } fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
_status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError>
where
Self: Sized, { ... } }
This is supported on crate feature
helix
only.Helix endpoint GETs information
Provided methods
fn create_request(
&self,
token: &str,
client_id: &str
) -> Result<Request<Vec<u8>>, CreateRequestError>
[src]
&self,
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>, HelixRequestGetError> where
Self: Sized,
[src]
request: Option<Self>,
uri: &Uri,
response: Response<Vec<u8>>
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,
fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
_status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,
[src]
request: Option<Self>,
uri: &Uri,
response: &str,
_status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,
Parse a response string into the response.
Implementors
impl RequestGet for GetBitsLeaderboardRequest
[src]
impl RequestGet for GetBitsLeaderboardRequest
[src]fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
_: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,
[src]
request: Option<Self>,
uri: &Uri,
response: &str,
_: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,
impl RequestGet for GetCheermotesRequest
[src]
impl RequestGet for GetCheermotesRequest
[src]impl RequestGet for GetChannelEditorsRequest
[src]
impl RequestGet for GetChannelEditorsRequest
[src]impl RequestGet for GetChannelInformationRequest
[src]
impl RequestGet for GetChannelInformationRequest
[src]fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
_: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,
[src]
request: Option<Self>,
uri: &Uri,
response: &str,
_: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,
impl RequestGet for GetClipsRequest
[src]
impl RequestGet for GetClipsRequest
[src]impl RequestGet for GetEventSubSubscriptionsRequest
[src]
impl RequestGet for GetEventSubSubscriptionsRequest
[src]This is supported on crate feature
eventsub
only.fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
_: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,
[src]
request: Option<Self>,
uri: &Uri,
response: &str,
_: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,
impl RequestGet for GetGamesRequest
[src]
impl RequestGet for GetGamesRequest
[src]impl RequestGet for GetTopGamesRequest
[src]
impl RequestGet for GetTopGamesRequest
[src]impl RequestGet for GetHypeTrainEventsRequest
[src]
impl RequestGet for GetHypeTrainEventsRequest
[src]impl RequestGet for GetBannedEventsRequest
[src]
impl RequestGet for GetBannedEventsRequest
[src]impl RequestGet for GetBannedUsersRequest
[src]
impl RequestGet for GetBannedUsersRequest
[src]impl RequestGet for GetModeratorEventsRequest
[src]
impl RequestGet for GetModeratorEventsRequest
[src]impl RequestGet for GetModeratorsRequest
[src]
impl RequestGet for GetModeratorsRequest
[src]impl RequestGet for GetCustomRewardRequest
[src]
impl RequestGet for GetCustomRewardRequest
[src]impl RequestGet for SearchCategoriesRequest
[src]
impl RequestGet for SearchCategoriesRequest
[src]fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
_: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,
[src]
request: Option<Self>,
uri: &Uri,
response: &str,
_: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,
impl RequestGet for SearchChannelsRequest
[src]
impl RequestGet for SearchChannelsRequest
[src]impl RequestGet for GetFollowedStreamsRequest
[src]
impl RequestGet for GetFollowedStreamsRequest
[src]impl RequestGet for GetStreamTagsRequest
[src]
impl RequestGet for GetStreamTagsRequest
[src]impl RequestGet for GetStreamsRequest
[src]
impl RequestGet for GetStreamsRequest
[src]impl RequestGet for CheckUserSubscriptionRequest
[src]
impl RequestGet for CheckUserSubscriptionRequest
[src]fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
text: &str,
status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,
[src]
request: Option<Self>,
uri: &Uri,
text: &str,
status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,
impl RequestGet for GetAllStreamTagsRequest
[src]
impl RequestGet for GetAllStreamTagsRequest
[src]impl RequestGet for GetChannelTeamsRequest
[src]
impl RequestGet for GetChannelTeamsRequest
[src]impl RequestGet for GetTeamsRequest
[src]
impl RequestGet for GetTeamsRequest
[src]impl RequestGet for GetUserBlockListRequest
[src]
impl RequestGet for GetUserBlockListRequest
[src]impl RequestGet for GetUsersFollowsRequest
[src]
impl RequestGet for GetUsersFollowsRequest
[src]fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
_status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,
[src]
request: Option<Self>,
uri: &Uri,
response: &str,
_status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,
impl RequestGet for GetUsersRequest
[src]
impl RequestGet for GetUsersRequest
[src]impl RequestGet for GetVideosRequest
[src]
impl RequestGet for GetVideosRequest
[src]impl RequestGet for GetWebhookSubscriptionsRequest
[src]
impl RequestGet for GetWebhookSubscriptionsRequest
[src]fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
_status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,
[src]
request: Option<Self>,
uri: &Uri,
response: &str,
_status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestGetError> where
Self: Sized,