Enum twitch_api2::eventsub::Payload[][src]

pub enum Payload {
    VerificationRequest(VerificationRequest),
    ChannelUpdateV1(NotificationPayload<ChannelUpdateV1>),
    ChannelFollowV1(NotificationPayload<ChannelFollowV1>),
    ChannelSubscribeV1(NotificationPayload<ChannelSubscribeV1>),
    ChannelCheerV1(NotificationPayload<ChannelCheerV1>),
    ChannelBanV1(NotificationPayload<ChannelBanV1>),
    ChannelUnbanV1(NotificationPayload<ChannelUnbanV1>),
    ChannelPointsCustomRewardAddV1(NotificationPayload<ChannelPointsCustomRewardAddV1>),
    ChannelPointsCustomRewardUpdateV1(NotificationPayload<ChannelPointsCustomRewardUpdateV1>),
    ChannelPointsCustomRewardRemoveV1(NotificationPayload<ChannelPointsCustomRewardRemoveV1>),
    ChannelPointsCustomRewardRedemptionAddV1(NotificationPayload<ChannelPointsCustomRewardRedemptionAddV1>),
    ChannelPointsCustomRewardRedemptionUpdateV1(NotificationPayload<ChannelPointsCustomRewardRedemptionUpdateV1>),
    ChannelHypeTrainBeginV1(NotificationPayload<ChannelHypeTrainBeginV1>),
    ChannelHypeTrainProgressV1(NotificationPayload<ChannelHypeTrainProgressV1>),
    ChannelHypeTrainEndV1(NotificationPayload<ChannelHypeTrainEndV1>),
    StreamOnlineV1(NotificationPayload<StreamOnlineV1>),
    StreamOfflineV1(NotificationPayload<StreamOfflineV1>),
    UserUpdateV1(NotificationPayload<UserUpdateV1>),
    UserAuthorizationRevokeV1(NotificationPayload<UserAuthorizationRevokeV1>),
    ChannelRaidBeta(NotificationPayload<ChannelRaidBeta>),
}
This is supported on crate feature eventsub only.

Subscription payload. Received on events. Enumerates all possible NotificationPayloads

Use Payload::parse to construct

Variants

VerificationRequest(VerificationRequest)

Webhook Callback Verification

Channel Update V1 Event

Channel Follow V1 Event

Channel Subscribe V1 Event

Channel Cheer V1 Event

Channel Ban V1 Event

Channel Unban V1 Event

ChannelPointsCustomRewardAddV1(NotificationPayload<ChannelPointsCustomRewardAddV1>)

Channel Points Custom Reward Add V1 Event

ChannelPointsCustomRewardUpdateV1(NotificationPayload<ChannelPointsCustomRewardUpdateV1>)

Channel Points Custom Reward Update V1 Event

ChannelPointsCustomRewardRemoveV1(NotificationPayload<ChannelPointsCustomRewardRemoveV1>)

Channel Points Custom Reward Remove V1 Event

ChannelPointsCustomRewardRedemptionAddV1(NotificationPayload<ChannelPointsCustomRewardRedemptionAddV1>)

Channel Points Custom Reward Redemption Add V1 Event

ChannelPointsCustomRewardRedemptionUpdateV1(NotificationPayload<ChannelPointsCustomRewardRedemptionUpdateV1>)

Channel Points Custom Reward Redemption Update V1 Event

Channel Hype Train Begin V1 Event

ChannelHypeTrainProgressV1(NotificationPayload<ChannelHypeTrainProgressV1>)

Channel Hype Train Progress V1 Event

Channel Hype Train End V1 Event

StreamOnline V1 Event

StreamOffline V1 Event

User Update V1 Event

User Authorization Revoke V1 Event

Channel Raid Beta Event

Implementations

impl Payload[src]

pub fn parse(source: &str) -> Result<Payload, PayloadParseError>[src]

Parse string slice as a Payload

pub fn parse_response(
    source: &Response<Vec<u8>>
) -> Result<Payload, PayloadParseError>
[src]

Parse http response as a Payload.

Trait Implementations

impl Debug for Payload[src]

impl<'de> Deserialize<'de> for Payload[src]

impl PartialEq<Payload> for Payload[src]

impl StructuralPartialEq for Payload[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]