Trait twitch_api2::eventsub::EventSubscription[][src]

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

    const SCOPE: &'static [Scope];
    const OPT_SCOPE: &'static [Scope];
    const VERSION: &'static str;
    const EVENT_TYPE: EventType;
    fn condition(&self) -> Result<Value, Error> { ... }
}
This is supported on crate feature eventsub only.

An EventSub subscription.

Associated Types

type Payload: PartialEq + Debug + DeserializeOwned + Serialize[src]

Payload for given subscription

Loading content...

Associated Constants

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

Scopes needed by this subscription

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

Optional scopes needed by this subscription

const VERSION: &'static str[src]

Subscription type version

const EVENT_TYPE: EventType[src]

Subscription type name.

Loading content...

Provided methods

fn condition(&self) -> Result<Value, Error>[src]

Creates the condition for this EventSub subscription

Loading content...

Implementors

impl EventSubscription for ChannelBanV1[src]

impl EventSubscription for ChannelCheerV1[src]

impl EventSubscription for ChannelFollowV1[src]

impl EventSubscription for ChannelHypeTrainBeginV1[src]

impl EventSubscription for ChannelHypeTrainEndV1[src]

impl EventSubscription for ChannelHypeTrainProgressV1[src]

impl EventSubscription for ChannelPointsCustomRewardAddV1[src]

impl EventSubscription for ChannelPointsCustomRewardRedemptionAddV1[src]

impl EventSubscription for ChannelPointsCustomRewardRedemptionUpdateV1[src]

impl EventSubscription for ChannelPointsCustomRewardRemoveV1[src]

impl EventSubscription for ChannelPointsCustomRewardUpdateV1[src]

impl EventSubscription for ChannelRaidBeta[src]

impl EventSubscription for ChannelSubscribeV1[src]

impl EventSubscription for ChannelUnbanV1[src]

impl EventSubscription for ChannelUpdateV1[src]

impl EventSubscription for StreamOfflineV1[src]

impl EventSubscription for StreamOnlineV1[src]

impl EventSubscription for UserAuthorizationRevokeV1[src]

impl EventSubscription for UserUpdateV1[src]

Loading content...