[][src]Trait twitch_helix::request::OAuthRequest

pub trait OAuthRequest {
    type Response: for<'de> Deserialize<'de>;
    fn url(&self) -> Url;
}

An OAuth request

Every helix request has an associated response type. This type is not returned directly from responses, as errors may occur. A OAuthResponse is returned, that includes response type as it's Ok variant.

An oauth request must simply return it's url, as all requests use the GET http method.

Associated Types

type Response: for<'de> Deserialize<'de>

Response type

Loading content...

Required methods

fn url(&self) -> Url

Returns this request's url

Loading content...

Implementors

impl OAuthRequest for Request[src]

type Response = Response

Loading content...