#[non_exhaustive]pub struct MessageInteraction {
pub id: InteractionId,
pub kind: InteractionType,
pub name: String,
pub user: User,
pub member: Option<PartialMember>,
}
Expand description
Sent when a Message
is a response to an Interaction
.
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.id: InteractionId
The id of the interaction.
kind: InteractionType
The type of the interaction.
name: String
The name of the Command
.
user: User
The user who invoked the interaction.
member: Option<PartialMember>
The member who invoked the interaction in the guild.
Trait Implementations§
Source§impl Clone for MessageInteraction
impl Clone for MessageInteraction
Source§fn clone(&self) -> MessageInteraction
fn clone(&self) -> MessageInteraction
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 MessageInteraction
impl Debug for MessageInteraction
Source§impl<'de> Deserialize<'de> for MessageInteraction
impl<'de> Deserialize<'de> for MessageInteraction
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
Auto Trait Implementations§
impl Freeze for MessageInteraction
impl RefUnwindSafe for MessageInteraction
impl Send for MessageInteraction
impl Sync for MessageInteraction
impl Unpin for MessageInteraction
impl UnwindSafe for MessageInteraction
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