#[non_exhaustive]pub struct CallbackResource {
pub kind: InteractionCallbackType,
pub activity_instance: Option<ActivityInstanceResource>,
pub message: Option<Box<Message>>,
}Expand description
The resource a response created.
discord.js counterpart: InteractionCallbackResource.
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.kind: InteractionCallbackTypeThe response type.
activity_instance: Option<ActivityInstanceResource>The launched Activity (LaunchActivity).
message: Option<Box<Message>>The created or updated message
(ChannelMessageWithSource,
UpdateMessage).
Trait Implementations§
Source§impl Clone for CallbackResource
impl Clone for CallbackResource
Source§impl Debug for CallbackResource
impl Debug for CallbackResource
Source§impl<'de> Deserialize<'de> for CallbackResource
impl<'de> Deserialize<'de> for CallbackResource
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 PartialEq for CallbackResource
impl PartialEq for CallbackResource
Source§impl Serialize for CallbackResource
impl Serialize for CallbackResource
impl StructuralPartialEq for CallbackResource
Auto Trait Implementations§
impl Forget for CallbackResource
impl Freeze for CallbackResource
impl Move for CallbackResource
impl RefUnwindSafe for CallbackResource
impl Send for CallbackResource
impl Sync for CallbackResource
impl Unpin for CallbackResource
impl UnsafeUnpin for CallbackResource
impl UnwindSafe for CallbackResource
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