Enum twitch_api2::eventsub::Payload [−][src]
eventsub
only.Subscription payload. Received on events. Enumerates all possible NotificationPayload
s
Use Payload::parse
to construct
Variants
VerificationRequest(VerificationRequest)
Webhook Callback Verification
ChannelUpdateV1(NotificationPayload<ChannelUpdateV1>)
Channel Update V1 Event
ChannelFollowV1(NotificationPayload<ChannelFollowV1>)
Channel Follow V1 Event
ChannelSubscribeV1(NotificationPayload<ChannelSubscribeV1>)
Channel Subscribe V1 Event
ChannelCheerV1(NotificationPayload<ChannelCheerV1>)
Channel Cheer V1 Event
ChannelBanV1(NotificationPayload<ChannelBanV1>)
Channel Ban V1 Event
ChannelUnbanV1(NotificationPayload<ChannelUnbanV1>)
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
ChannelHypeTrainBeginV1(NotificationPayload<ChannelHypeTrainBeginV1>)
Channel Hype Train Begin V1 Event
ChannelHypeTrainProgressV1(NotificationPayload<ChannelHypeTrainProgressV1>)
Channel Hype Train Progress V1 Event
ChannelHypeTrainEndV1(NotificationPayload<ChannelHypeTrainEndV1>)
Channel Hype Train End V1 Event
StreamOnlineV1(NotificationPayload<StreamOnlineV1>)
StreamOnline V1 Event
StreamOfflineV1(NotificationPayload<StreamOfflineV1>)
StreamOffline V1 Event
UserUpdateV1(NotificationPayload<UserUpdateV1>)
User Update V1 Event
UserAuthorizationRevokeV1(NotificationPayload<UserAuthorizationRevokeV1>)
User Authorization Revoke V1 Event
ChannelRaidBeta(NotificationPayload<ChannelRaidBeta>)
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]
source: &Response<Vec<u8>>
) -> Result<Payload, PayloadParseError>
Parse http response as a Payload.
Trait Implementations
impl Debug for Payload
[src]
impl<'de> Deserialize<'de> for Payload
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
impl PartialEq<Payload> for Payload
[src]
impl StructuralPartialEq for Payload
[src]
Auto Trait Implementations
impl RefUnwindSafe for Payload
[src]
impl Send for Payload
[src]
impl Sync for Payload
[src]
impl Unpin for Payload
[src]
impl UnwindSafe for Payload
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,