pub struct MessagePollVoteAdd {
pub answer_id: u8,
pub channel_id: Id<ChannelMarker>,
pub guild_id: Option<Id<GuildMarker>>,
pub message_id: Id<MessageMarker>,
pub user_id: Id<UserMarker>,
}
Expand description
Sent when a user votes on a poll. If the poll allows multiple selection, one event will be sent per answer.
Fields§
§answer_id: u8
ID of the answer.
channel_id: Id<ChannelMarker>
ID of the channel.
guild_id: Option<Id<GuildMarker>>
ID of the guild.
message_id: Id<MessageMarker>
ID of the message.
user_id: Id<UserMarker>
ID of the user.
Trait Implementations§
Source§impl Clone for MessagePollVoteAdd
impl Clone for MessagePollVoteAdd
Source§fn clone(&self) -> MessagePollVoteAdd
fn clone(&self) -> MessagePollVoteAdd
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 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
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 Eq 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 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