#[non_exhaustive]pub struct DeferredCallbackData {
pub flags: MessageFlags,
}Expand description
The data of a deferred message response: only the flags of the message that follows.
discord.js counterpart: the data of APIInteractionResponseDeferredChannelMessageWithSource (discord-api-types).
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.flags: MessageFlagsOnly EPHEMERAL is valid here (the later message is then
ephemeral).
Implementations§
Source§impl DeferredCallbackData
impl DeferredCallbackData
Sourcepub const fn new(flags: MessageFlags) -> Self
pub const fn new(flags: MessageFlags) -> Self
Creates the data with the given flags.
discord.js counterpart: InteractionDeferReplyOptions.
Trait Implementations§
Source§impl Clone for DeferredCallbackData
impl Clone for DeferredCallbackData
impl Copy for DeferredCallbackData
Source§impl Debug for DeferredCallbackData
impl Debug for DeferredCallbackData
Source§impl Default for DeferredCallbackData
impl Default for DeferredCallbackData
impl Eq for DeferredCallbackData
Source§impl PartialEq for DeferredCallbackData
impl PartialEq for DeferredCallbackData
Source§impl Serialize for DeferredCallbackData
impl Serialize for DeferredCallbackData
impl StructuralPartialEq for DeferredCallbackData
Auto Trait Implementations§
impl Forget for DeferredCallbackData
impl Freeze for DeferredCallbackData
impl Move for DeferredCallbackData
impl RefUnwindSafe for DeferredCallbackData
impl Send for DeferredCallbackData
impl Sync for DeferredCallbackData
impl Unpin for DeferredCallbackData
impl UnsafeUnpin for DeferredCallbackData
impl UnwindSafe for DeferredCallbackData
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