Trait twitch_api2::helix::webhooks::topics::Topic[][src]

pub trait Topic: DeserializeOwned + Serialize + PartialEq {
    type Helix: RequestGet + Request;

    const PATH: &'static str;
    const SCOPE: &'static [Scope];
    const OPT_SCOPE: &'static [Scope];
    fn query(&self) -> Result<String, Error> { ... }
fn get_uri(&self) -> Result<Uri, InvalidUri> { ... }
fn get_bare_uri() -> Result<Uri, InvalidUri> { ... }
fn parse_payload(
        response: Response<Vec<u8>>
    ) -> Result<Response<Self::Helix, <Self::Helix as Request>::Response>, HelixRequestGetError>
    where
        Self: Sized
, { ... } }
This is supported on crate feature helix only.

A webhook topic.

Associated Types

type Helix: RequestGet + Request[src]

Helix response

Loading content...

Associated Constants

const PATH: &'static str[src]

URL of topic sans https://api.twitch.tv/helix/

const SCOPE: &'static [Scope][src]

Scopes needed by this endpoint

const OPT_SCOPE: &'static [Scope][src]

Optional scopes needed by this endpoint

Loading content...

Provided methods

fn query(&self) -> Result<String, Error>[src]

Defines layout of the url parameters.

fn get_uri(&self) -> Result<Uri, InvalidUri>[src]

Returns full URI for the request, including query parameters.

fn get_bare_uri() -> Result<Uri, InvalidUri>[src]

Returns bare URI for the request, NOT including query parameters.

fn parse_payload(
    response: Response<Vec<u8>>
) -> Result<Response<Self::Helix, <Self::Helix as Request>::Response>, HelixRequestGetError> where
    Self: Sized
[src]

Parse payload received on webhook.

Forwards to RequestGet::parse_response

Loading content...

Implementors

Loading content...