#[non_exhaustive]pub struct MessagePollVoteAdd {
pub user_id: UserId,
pub channel_id: ChannelId,
pub message_id: MessageId,
pub guild_id: Option<GuildId>,
pub answer_id: u32,
}Expand description
The data of the Message Poll Vote Add dispatch event (one event per answer for multiselect polls).
discord.js counterpart: the MessagePollVoteAdd event.
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.user_id: UserIdThe voter.
channel_id: ChannelIdThe poll message’s channel.
message_id: MessageIdThe poll message.
guild_id: Option<GuildId>The poll message’s guild.
answer_id: u32The answer voted for.
Trait Implementations§
Source§impl Clone for MessagePollVoteAdd
impl Clone for MessagePollVoteAdd
Source§impl Debug for MessagePollVoteAdd
impl Debug for MessagePollVoteAdd
Source§impl<'de> Deserialize<'de> for MessagePollVoteAdd
impl<'de> Deserialize<'de> for MessagePollVoteAdd
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
impl Eq for MessagePollVoteAdd
Source§impl Hash for MessagePollVoteAdd
impl Hash for MessagePollVoteAdd
Source§impl PartialEq for MessagePollVoteAdd
impl PartialEq for MessagePollVoteAdd
Source§impl Serialize for MessagePollVoteAdd
impl Serialize for MessagePollVoteAdd
impl StructuralPartialEq for MessagePollVoteAdd
Auto Trait Implementations§
impl Freeze for MessagePollVoteAdd
impl RefUnwindSafe for MessagePollVoteAdd
impl Send for MessagePollVoteAdd
impl Sync for MessagePollVoteAdd
impl Unpin for MessagePollVoteAdd
impl UnsafeUnpin for MessagePollVoteAdd
impl UnwindSafe for MessagePollVoteAdd
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