[−][src]Enum ttv_pubsub::channel_subscriptions::ChannelSubscribeEventsV1Reply
Reply from ChannelSubscribeEventsV1
Variants (Non-exhaustive)
A subscription
Fields of Sub
benefit_end_month: i64Unknown
channel_id: StringID of the channel that has been subscribed or subgifted
channel_name: StringName of the channel that has been subscribed or subgifted
cumulative_months: i64Cumulative months that user has been subscribed
is_gift: boolResubscription is a gift
multi_month_duration: i64Duration of subscription, e.g 1, 3 or 6
sub_message: SubMessageMessage sent with this subscription
sub_plan: SubscriptionTierSubscription plan
sub_plan_name: StringName of subscription plan
time: StringTime when pubsub message was sent
user_id: StringID of user that subscribed
user_name: StringUsername of user that subscribed
display_name: StringDisplay name of user that subscribed
A resubscription
Fields of ReSub
benefit_end_month: Option<i64>Unknown
channel_id: StringID of the channel that has been subscribed or subgifted
channel_name: StringName of the channel that has been subscribed or subgifted
cumulative_months: i64Cumulative months that user has been subscribed
is_gift: boolResubscription is a gift
streak_months: Option<i64>Months the user has been subscribed for in a row.
multi_month_duration: Option<i64>Duration of subscription, e.g 1, 3 or 6
sub_message: SubMessageMessage sent with this subscription
sub_plan: SubscriptionTierSubscription plan
sub_plan_name: StringName of subscription plan
time: StringTime when pubsub message was sent
user_id: StringID of user that subscribed
user_name: StringUsername of user that subscribed
display_name: StringDisplay name of user that subscribed
A gifted subscription happened
Fields of SubGift
benefit_end_month: Option<i64>Unknown
channel_id: StringID of the channel that has been subscribed or subgifted
channel_name: StringName of the channel that has been subscribed or subgifted
months: i64Months
multi_month_duration: Option<i64>Duration of subscription, e.g 1, 3 or 6
recipient_display_name: StringDisplay name of user that received gifted subscription
recipient_id: StringUsername of user that received gifted subscription
recipient_user_name: StringUsername of user that received gifted subscription
sub_plan: SubscriptionTierSubscription plan
sub_plan_name: StringName of subscription plan
time: StringTime when pubsub message was sent
user_id: StringID of user that purchased gifted subscription
user_name: StringUsername of user that purchased gifted subscription
display_name: StringDisplay name of user that purchased gifted subscription
Trait Implementations
impl Clone for ChannelSubscribeEventsV1Reply[src]
pub fn clone(&self) -> ChannelSubscribeEventsV1Reply[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ChannelSubscribeEventsV1Reply[src]
impl<'de> Deserialize<'de> for ChannelSubscribeEventsV1Reply[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ChannelSubscribeEventsV1Reply, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
__deserializer: __D
) -> Result<ChannelSubscribeEventsV1Reply, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for ChannelSubscribeEventsV1Reply[src]
impl PartialEq<ChannelSubscribeEventsV1Reply> for ChannelSubscribeEventsV1Reply[src]
pub fn eq(&self, other: &ChannelSubscribeEventsV1Reply) -> bool[src]
pub fn ne(&self, other: &ChannelSubscribeEventsV1Reply) -> bool[src]
impl Serialize for ChannelSubscribeEventsV1Reply[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, [src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralEq for ChannelSubscribeEventsV1Reply[src]
impl StructuralPartialEq for ChannelSubscribeEventsV1Reply[src]
Auto Trait Implementations
impl RefUnwindSafe for ChannelSubscribeEventsV1Reply
impl Send for ChannelSubscribeEventsV1Reply
impl Sync for ChannelSubscribeEventsV1Reply
impl Unpin for ChannelSubscribeEventsV1Reply
impl UnwindSafe for ChannelSubscribeEventsV1Reply
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, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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>,