#[non_exhaustive]pub struct ChannelRaidV1 {
pub from_broadcaster_user_id: Option<UserId>,
pub to_broadcaster_user_id: Option<UserId>,
}
Available on crate feature
eventsub
only.Expand description
channel.raid
: a a broadcaster raids another broadcaster’s channel.
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.from_broadcaster_user_id: Option<UserId>
The broadcaster user ID that created the channel raid you want to get notifications for. Use this parameter if you want to know when a specific broadcaster raids another broadcaster.
to_broadcaster_user_id: Option<UserId>
The broadcaster user ID that received the channel raid you want to get notifications for. Use this parameter if you want to know when a specific broadcaster is raided by another broadcaster.
Implementations§
Source§impl ChannelRaidV1
impl ChannelRaidV1
Source§impl ChannelRaidV1
impl ChannelRaidV1
Sourcepub fn from_broadcaster_user_id(
from_broadcaster_user_id: impl Into<UserId>,
) -> Self
pub fn from_broadcaster_user_id( from_broadcaster_user_id: impl Into<UserId>, ) -> Self
The broadcaster user ID that created the channel raid you want to get notifications for.
Sourcepub fn to_broadcaster_user_id(to_broadcaster_user_id: impl Into<UserId>) -> Self
pub fn to_broadcaster_user_id(to_broadcaster_user_id: impl Into<UserId>) -> Self
The broadcaster user ID that received the channel raid you want to get notifications for.
Trait Implementations§
Source§impl Clone for ChannelRaidV1
impl Clone for ChannelRaidV1
Source§fn clone(&self) -> ChannelRaidV1
fn clone(&self) -> ChannelRaidV1
Returns a copy 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 Debug for ChannelRaidV1
impl Debug for ChannelRaidV1
Source§impl Default for ChannelRaidV1
impl Default for ChannelRaidV1
Source§fn default() -> ChannelRaidV1
fn default() -> ChannelRaidV1
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChannelRaidV1
impl<'de> Deserialize<'de> for ChannelRaidV1
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 EventSubscription for ChannelRaidV1
impl EventSubscription for ChannelRaidV1
Source§const EVENT_TYPE: EventType = EventType::ChannelRaid
const EVENT_TYPE: EventType = EventType::ChannelRaid
Subscription type name.
Source§const SCOPE: Validator
const SCOPE: Validator
Available on crate feature
twitch_oauth2
only.Scopes needed by this subscription
Source§type Payload = ChannelRaidV1Payload
type Payload = ChannelRaidV1Payload
Payload for given subscription
Source§impl PartialEq for ChannelRaidV1
impl PartialEq for ChannelRaidV1
Source§impl Serialize for ChannelRaidV1
impl Serialize for ChannelRaidV1
impl Eq for ChannelRaidV1
impl StructuralPartialEq for ChannelRaidV1
Auto Trait Implementations§
impl Freeze for ChannelRaidV1
impl RefUnwindSafe for ChannelRaidV1
impl Send for ChannelRaidV1
impl Sync for ChannelRaidV1
impl Unpin for ChannelRaidV1
impl UnwindSafe for ChannelRaidV1
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