#[non_exhaustive]pub struct ChannelShieldModeBeginV1Payload {
pub broadcaster_user_id: UserId,
pub broadcaster_user_login: UserName,
pub broadcaster_user_name: DisplayName,
pub moderator_user_id: UserId,
pub moderator_user_login: UserName,
pub moderator_user_name: DisplayName,
pub started_at: Timestamp,
}
Available on crate feature
eventsub
only.Expand description
channel.shield_mode.begin
response payload.
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_user_id: UserId
An ID that identifies the broadcaster whose Shield Mode status was updated.
broadcaster_user_login: UserName
The broadcaster’s login name.
broadcaster_user_name: DisplayName
The broadcaster’s display name.
moderator_user_id: UserId
An ID that identifies the moderator that updated the Shield Mode’s status. If the broadcaster updated the status, this ID will be the same as broadcaster_user_id.
moderator_user_login: UserName
The moderator’s login name.
moderator_user_name: DisplayName
The moderator’s display name.
started_at: Timestamp
The UTC timestamp (in RFC3339 format) of when the moderator activated Shield Mode.
Trait Implementations§
Source§impl Clone for ChannelShieldModeBeginV1Payload
impl Clone for ChannelShieldModeBeginV1Payload
Source§fn clone(&self) -> ChannelShieldModeBeginV1Payload
fn clone(&self) -> ChannelShieldModeBeginV1Payload
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<'de> Deserialize<'de> for ChannelShieldModeBeginV1Payload
impl<'de> Deserialize<'de> for ChannelShieldModeBeginV1Payload
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 ChannelShieldModeBeginV1Payload
impl PartialEq for ChannelShieldModeBeginV1Payload
Source§fn eq(&self, other: &ChannelShieldModeBeginV1Payload) -> bool
fn eq(&self, other: &ChannelShieldModeBeginV1Payload) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for ChannelShieldModeBeginV1Payload
impl StructuralPartialEq for ChannelShieldModeBeginV1Payload
Auto Trait Implementations§
impl Freeze for ChannelShieldModeBeginV1Payload
impl RefUnwindSafe for ChannelShieldModeBeginV1Payload
impl Send for ChannelShieldModeBeginV1Payload
impl Sync for ChannelShieldModeBeginV1Payload
impl Unpin for ChannelShieldModeBeginV1Payload
impl UnwindSafe for ChannelShieldModeBeginV1Payload
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