Trait twitch_api2::eventsub::EventSubscription
source · [−]pub trait EventSubscription: DeserializeOwned + Serialize + PartialEq + Clone {
type Payload: PartialEq + Debug + DeserializeOwned + Serialize + Clone;
const SCOPE: &'static [Scope];
const VERSION: &'static str;
const EVENT_TYPE: EventType;
const OPT_SCOPE: &'static [Scope] = &[];
fn condition(&self) -> Result<Value, Error> { ... }
}
Available on crate feature
eventsub
only.Expand description
An EventSub subscription.
Required Associated Types
Required Associated Constants
const SCOPE: &'static [Scope]
const SCOPE: &'static [Scope]
Available on crate feature
twitch_oauth2
only.Scopes needed by this subscription
const EVENT_TYPE: EventType
const EVENT_TYPE: EventType
Subscription type name.
Provided Associated Constants
const OPT_SCOPE: &'static [Scope] = &[]
const OPT_SCOPE: &'static [Scope] = &[]
Available on crate feature
twitch_oauth2
only.Optional scopes needed by this subscription