pub trait EventSubscription: DeserializeOwned + Serialize + PartialEq + Clone {
    type Payload: PartialEq + Debug + DeserializeOwned + Serialize + Clone;

    const SCOPE: &'static [Scope];
    const VERSION: &'static str;
    const EVENT_TYPE: EventType;
    const OPT_SCOPE: &'static [Scope] = &[];

    fn condition(&self) -> Result<Value, Error> { ... }
}
Available on crate feature eventsub only.
Expand description

An EventSub subscription.

Required Associated Types

Payload for given subscription

Required Associated Constants

Available on crate feature twitch_oauth2 only.

Scopes needed by this subscription

Subscription type version

Subscription type name.

Provided Associated Constants

Available on crate feature twitch_oauth2 only.

Optional scopes needed by this subscription

Provided Methods

Creates the condition for this EventSub subscription

Implementors