Skip to main content

InteractionCallbackResponse

Struct InteractionCallbackResponse 

Source
pub struct InteractionCallbackResponse {
    pub interaction: InteractionCallback,
    pub resource: Option<InteractionCallbackResource>,
}
Expand description

Included when creating an interaction response with a response

See Discord Docs/Interaction Callback Response Object

Fields§

§interaction: InteractionCallback

The interaction object associated with the interaction response.

§resource: Option<InteractionCallbackResource>

The resource that was created by the interaction response.

Trait Implementations§

Source§

impl Clone for InteractionCallbackResponse

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InteractionCallbackResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for InteractionCallbackResponse

Source§

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 InteractionCallbackResponse

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for InteractionCallbackResponse

Auto Trait Implementations§

§

impl Forget for InteractionCallbackResponse

§

impl Freeze for InteractionCallbackResponse
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, PhantomData<fn(InteractionMarker) -> InteractionMarker>: Freeze, NonZero<u64>: Freeze, PhantomData<fn(MessageMarker) -> MessageMarker>: Freeze, PhantomData<fn(ApplicationMarker) -> ApplicationMarker>: Freeze, PhantomData<Attachment>: Freeze, PhantomData<fn(AvatarDecorationDataSkuMarker) -> AvatarDecorationDataSkuMarker>: Freeze, InternalBitFlags: Freeze, PhantomData<fn(UserMarker) -> UserMarker>: Freeze, PhantomData<fn(GuildMarker) -> GuildMarker>: Freeze, NonZero<i32>: Freeze, PhantomData<Id<UserMarker>>: Freeze, PhantomData<fn(ChannelMarker) -> ChannelMarker>: Freeze, PhantomData<Component>: Freeze, PhantomData<Embed>: Freeze, InternalBitFlags: Freeze, InternalBitFlags: Freeze, InternalBitFlags: Freeze, PhantomData<Id<RoleMarker>>: Freeze, *const InteractionMetadata is !null: Freeze, PhantomData<InteractionMetadata>: Freeze, PhantomData<ChannelMention>: Freeze, PhantomData<Mention>: Freeze, PhantomData<MessageSnapshot>: Freeze, PhantomData<PollAnswer>: Freeze, PhantomData<fn(EmojiMarker) -> EmojiMarker>: Freeze, PhantomData<AnswerCount>: Freeze, PhantomData<Reaction>: Freeze, *const Message is !null: Freeze, PhantomData<Message>: Freeze, PhantomData<fn(RoleSubscriptionSkuMarker) -> RoleSubscriptionSkuMarker>: Freeze, PhantomData<MessageSticker>: Freeze, PhantomData<Id<TagMarker>>: Freeze, PhantomData<ForumTag>: Freeze, InternalBitFlags: Freeze, PhantomData<fn(GenericMarker) -> GenericMarker>: Freeze, PhantomData<Activity>: Freeze, PhantomData<PermissionOverwrite>: Freeze, PhantomData<User>: Freeze, PhantomData<fn(WebhookMarker) -> WebhookMarker>: Freeze,

§

impl Move for InteractionCallbackResponse

§

impl RefUnwindSafe for InteractionCallbackResponse
where NonZero<u64>: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, NonZero<i32>: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, InternalBitFlags: RefUnwindSafe,

§

impl Send for InteractionCallbackResponse
where RawVecInner: Send, NonZero<u64>: Send, InternalBitFlags: Send, InternalBitFlags: Send, NonZero<i32>: Send, InternalBitFlags: Send, BoxRaw<Component>: Send, InternalBitFlags: Send, InternalBitFlags: Send, InternalBitFlags: Send, InternalBitFlags: Send, InternalBitFlags: Send, BoxRaw<InteractionMetadata>: Send, BoxRaw<Message>: Send, InternalBitFlags: Send, InternalBitFlags: Send,

§

impl Sync for InteractionCallbackResponse
where RawVecInner: Sync, NonZero<u64>: Sync, InternalBitFlags: Sync, InternalBitFlags: Sync, NonZero<i32>: Sync, InternalBitFlags: Sync, BoxRaw<Component>: Sync, InternalBitFlags: Sync, InternalBitFlags: Sync, InternalBitFlags: Sync, InternalBitFlags: Sync, InternalBitFlags: Sync, BoxRaw<InteractionMetadata>: Sync, BoxRaw<Message>: Sync, InternalBitFlags: Sync, InternalBitFlags: Sync,

§

impl Unpin for InteractionCallbackResponse
where *const u8 is !null: Unpin, NonZero<u64>: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin, NonZero<i32>: Unpin, InternalBitFlags: Unpin, Box<Component>: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin, Box<InteractionMetadata>: Unpin, Box<Message>: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin,

§

impl UnsafeUnpin for InteractionCallbackResponse
where *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, PhantomData<fn(InteractionMarker) -> InteractionMarker>: UnsafeUnpin, NonZeroU64Inner: UnsafeUnpin, PhantomData<fn(MessageMarker) -> MessageMarker>: UnsafeUnpin, PhantomData<fn(ApplicationMarker) -> ApplicationMarker>: UnsafeUnpin, PhantomData<Attachment>: UnsafeUnpin, PhantomData<fn(AvatarDecorationDataSkuMarker) -> AvatarDecorationDataSkuMarker>: UnsafeUnpin, InternalBitFlags: UnsafeUnpin, PhantomData<fn(UserMarker) -> UserMarker>: UnsafeUnpin, PhantomData<fn(GuildMarker) -> GuildMarker>: UnsafeUnpin, NonZeroI32Inner: UnsafeUnpin, PhantomData<Id<UserMarker>>: UnsafeUnpin, PhantomData<fn(ChannelMarker) -> ChannelMarker>: UnsafeUnpin, PhantomData<Component>: UnsafeUnpin, PhantomData<Embed>: UnsafeUnpin, InternalBitFlags: UnsafeUnpin, InternalBitFlags: UnsafeUnpin, InternalBitFlags: UnsafeUnpin, PhantomData<Id<RoleMarker>>: UnsafeUnpin, *const InteractionMetadata is !null: UnsafeUnpin, PhantomData<InteractionMetadata>: UnsafeUnpin, PhantomData<ChannelMention>: UnsafeUnpin, PhantomData<Mention>: UnsafeUnpin, PhantomData<MessageSnapshot>: UnsafeUnpin, PhantomData<PollAnswer>: UnsafeUnpin, PhantomData<fn(EmojiMarker) -> EmojiMarker>: UnsafeUnpin, PhantomData<AnswerCount>: UnsafeUnpin, PhantomData<Reaction>: UnsafeUnpin, *const Message is !null: UnsafeUnpin, PhantomData<Message>: UnsafeUnpin, PhantomData<fn(RoleSubscriptionSkuMarker) -> RoleSubscriptionSkuMarker>: UnsafeUnpin, PhantomData<MessageSticker>: UnsafeUnpin, PhantomData<Id<TagMarker>>: UnsafeUnpin, PhantomData<ForumTag>: UnsafeUnpin, InternalBitFlags: UnsafeUnpin, PhantomData<fn(GenericMarker) -> GenericMarker>: UnsafeUnpin, PhantomData<Activity>: UnsafeUnpin, PhantomData<PermissionOverwrite>: UnsafeUnpin, PhantomData<User>: UnsafeUnpin, PhantomData<fn(WebhookMarker) -> WebhookMarker>: UnsafeUnpin,

§

impl UnwindSafe for InteractionCallbackResponse
where RawVecInner: UnwindSafe, NonZero<u64>: UnwindSafe, InternalBitFlags: UnwindSafe, InternalBitFlags: UnwindSafe, NonZero<i32>: UnwindSafe, InternalBitFlags: UnwindSafe, BoxRaw<Component>: UnwindSafe, InternalBitFlags: UnwindSafe, InternalBitFlags: UnwindSafe, InternalBitFlags: UnwindSafe, InternalBitFlags: UnwindSafe, InternalBitFlags: UnwindSafe, BoxRaw<InteractionMetadata>: UnwindSafe, BoxRaw<Message>: UnwindSafe, InternalBitFlags: UnwindSafe, InternalBitFlags: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.