#[non_exhaustive]pub struct BroadcasterSubscriptionEventData {
pub broadcaster_id: UserId,
pub broadcaster_name: DisplayName,
pub is_gift: bool,
pub tier: Option<SubscriptionTier>,
pub plan_name: Option<String>,
pub user_id: UserId,
pub user_name: DisplayName,
pub gifter_id: Option<UserId>,
pub gifter_name: Option<DisplayName>,
}Available on crate feature
helix only.Expand description
Event data for broadcaster events.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.broadcaster_id: UserIdUser ID of the broadcaster.
broadcaster_name: DisplayNameDisplay name of the broadcaster.
is_gift: boolDetermines if the subscription is a gift subscription.
tier: Option<SubscriptionTier>Type of subscription (Tier 1, Tier 2, Tier 3). 1000 = Tier 1, 2000 = Tier 2, 3000 = Tier 3 subscriptions.
plan_name: Option<String>Name of the subscription.
user_id: UserIdID of the subscribed user.
user_name: DisplayNameDisplay name of the subscribed user.
gifter_id: Option<UserId>ID of the subscribed user.
gifter_name: Option<DisplayName>Display name of the gifter.
Trait Implementations§
Source§impl Clone for BroadcasterSubscriptionEventData
impl Clone for BroadcasterSubscriptionEventData
Source§fn clone(&self) -> BroadcasterSubscriptionEventData
fn clone(&self) -> BroadcasterSubscriptionEventData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for BroadcasterSubscriptionEventData
impl<'de> Deserialize<'de> for BroadcasterSubscriptionEventData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BroadcasterSubscriptionEventData
impl PartialEq for BroadcasterSubscriptionEventData
Source§fn eq(&self, other: &BroadcasterSubscriptionEventData) -> bool
fn eq(&self, other: &BroadcasterSubscriptionEventData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BroadcasterSubscriptionEventData
Auto Trait Implementations§
impl Freeze for BroadcasterSubscriptionEventData
impl RefUnwindSafe for BroadcasterSubscriptionEventData
impl Send for BroadcasterSubscriptionEventData
impl Sync for BroadcasterSubscriptionEventData
impl Unpin for BroadcasterSubscriptionEventData
impl UnwindSafe for BroadcasterSubscriptionEventData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more