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

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

    pub const SCOPE: &'static [Scope];
    pub const OPT_SCOPE: &'static [Scope];
    pub const VERSION: &'static str;
    pub const EVENT_TYPE: EventType;
    pub 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

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

Scopes needed by this subscription

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

Optional scopes needed by this subscription

pub const VERSION: &'static str[src]

Subscription type version

pub const EVENT_TYPE: EventType[src]

Subscription type name.

Loading content...

Provided methods

pub 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 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...