Trait twitch_api2::eventsub::EventSubscription [−][src]
pub trait EventSubscription: DeserializeOwned + Serialize + PartialEq + Clone { type Payload: PartialEq + Debug + DeserializeOwned + Serialize + Clone; 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 + Clone
[src]
Payload for given subscription
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.
Provided methods
fn condition(&self) -> Result<Value, Error>
[src]
Creates the condition
for this EventSub subscription
Implementors
impl EventSubscription for ChannelBanV1
[src]
impl EventSubscription for ChannelBanV1
[src]type Payload = ChannelBanV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for ChannelCheerV1
[src]
impl EventSubscription for ChannelCheerV1
[src]type Payload = ChannelCheerV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for ChannelFollowV1
[src]
impl EventSubscription for ChannelFollowV1
[src]type Payload = ChannelFollowV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for ChannelHypeTrainBeginV1
[src]
impl EventSubscription for ChannelHypeTrainBeginV1
[src]type Payload = ChannelHypeTrainBeginV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for ChannelHypeTrainEndV1
[src]
impl EventSubscription for ChannelHypeTrainEndV1
[src]type Payload = ChannelHypeTrainEndV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for ChannelHypeTrainProgressV1
[src]
impl EventSubscription for ChannelHypeTrainProgressV1
[src]type Payload = ChannelHypeTrainProgressV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for ChannelPointsCustomRewardAddV1
[src]
impl EventSubscription for ChannelPointsCustomRewardAddV1
[src]type Payload = ChannelPointsCustomRewardAddV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for ChannelPointsCustomRewardRedemptionAddV1
[src]
impl EventSubscription for ChannelPointsCustomRewardRedemptionAddV1
[src]type Payload = ChannelPointsCustomRewardRedemptionAddV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for ChannelPointsCustomRewardRedemptionUpdateV1
[src]
impl EventSubscription for ChannelPointsCustomRewardRedemptionUpdateV1
[src]type Payload = ChannelPointsCustomRewardRedemptionUpdateV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for ChannelPointsCustomRewardRemoveV1
[src]
impl EventSubscription for ChannelPointsCustomRewardRemoveV1
[src]type Payload = ChannelPointsCustomRewardRemoveV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for ChannelPointsCustomRewardUpdateV1
[src]
impl EventSubscription for ChannelPointsCustomRewardUpdateV1
[src]type Payload = ChannelPointsCustomRewardUpdateV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for ChannelRaidV1
[src]
impl EventSubscription for ChannelRaidV1
[src]type Payload = ChannelRaidV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for ChannelSubscribeV1
[src]
impl EventSubscription for ChannelSubscribeV1
[src]type Payload = ChannelSubscribeV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for ChannelUnbanV1
[src]
impl EventSubscription for ChannelUnbanV1
[src]type Payload = ChannelUnbanV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for ChannelUpdateV1
[src]
impl EventSubscription for ChannelUpdateV1
[src]type Payload = ChannelUpdateV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for StreamOfflineV1
[src]
impl EventSubscription for StreamOfflineV1
[src]type Payload = StreamOfflineV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for StreamOnlineV1
[src]
impl EventSubscription for StreamOnlineV1
[src]type Payload = StreamOnlineV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for UserAuthorizationRevokeV1
[src]
impl EventSubscription for UserAuthorizationRevokeV1
[src]type Payload = UserAuthorizationRevokeV1Payload
const EVENT_TYPE: EventType
[src]
const SCOPE: &'static [Scope]
[src]
const VERSION: &'static str
[src]
impl EventSubscription for UserUpdateV1
[src]
impl EventSubscription for UserUpdateV1
[src]