pub struct InteractionMetadata {
pub interaction_id: InteractionId,
pub kind: InteractionType,
pub name: Option<String>,
pub member_id: MemberId,
}Expand description
interaction_metadata of a message that answers an interaction.
Fields§
§interaction_id: InteractionIdThe interaction.
kind: InteractionTypeIts type.
name: Option<String>The command’s name, for commands.
member_id: MemberIdThe invoker.
Trait Implementations§
Source§impl Clone for InteractionMetadata
impl Clone for InteractionMetadata
Source§fn clone(&self) -> InteractionMetadata
fn clone(&self) -> InteractionMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InteractionMetadata
impl Debug for InteractionMetadata
Source§impl<'de> Deserialize<'de> for InteractionMetadata
impl<'de> Deserialize<'de> for InteractionMetadata
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 InteractionMetadata
Source§impl PartialEq for InteractionMetadata
impl PartialEq for InteractionMetadata
Source§impl Serialize for InteractionMetadata
impl Serialize for InteractionMetadata
impl StructuralPartialEq for InteractionMetadata
Auto Trait Implementations§
impl Freeze for InteractionMetadata
impl RefUnwindSafe for InteractionMetadata
impl Send for InteractionMetadata
impl Sync for InteractionMetadata
impl Unpin for InteractionMetadata
impl UnsafeUnpin for InteractionMetadata
impl UnwindSafe for InteractionMetadata
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