Trait twitch_api2::helix::RequestGet
source · [−]pub trait RequestGet: Request {
fn create_request(
&self,
token: &str,
client_id: &str
) -> Result<Request<Bytes>, CreateRequestError> { ... }
fn parse_response<B: Into<Bytes>>(
request: Option<Self>,
uri: &Uri,
response: Response<B>
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestGetError>
where
Self: Sized,
{ ... }
fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestGetError>
where
Self: Sized,
{ ... }
}
Available on crate feature
helix
only.Expand description
Helix endpoint GETs information
Provided Methods
fn create_request(
&self,
token: &str,
client_id: &str
) -> Result<Request<Bytes>, CreateRequestError>
fn create_request(
&self,
token: &str,
client_id: &str
) -> Result<Request<Bytes>, CreateRequestError>
Create a http::Request
from this Request
in your client
fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestGetError> where
Self: Sized,
fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestGetError> where
Self: Sized,
Parse a response string into the response.
Implementors
impl RequestGet for GetBitsLeaderboardRequest
impl RequestGet for GetCheermotesRequest
impl RequestGet for GetChannelEditorsRequest
impl RequestGet for GetChannelInformationRequest
impl RequestGet for GetChannelChatBadgesRequest
impl RequestGet for GetChannelEmotesRequest
impl RequestGet for GetEmoteSetsRequest
impl RequestGet for GetGlobalChatBadgesRequest
impl RequestGet for GetGlobalEmotesRequest
impl RequestGet for GetClipsRequest
impl RequestGet for GetEventSubSubscriptionsRequest
Available on crate feature
eventsub
only.