pub struct ModalBuilder(/* private fields */);Available on crate feature
builder only.Expand description
Builder for a InteractionResponse of type InteractionResponseType::Modal.
Implementations§
Source§impl ModalBuilder
impl ModalBuilder
Sourcepub fn new(
custom_id: impl Into<String>,
title: impl Into<String>,
components: impl IntoIterator<Item = impl Into<Component>>,
) -> Self
pub fn new( custom_id: impl Into<String>, title: impl Into<String>, components: impl IntoIterator<Item = impl Into<Component>>, ) -> Self
Creates a new default builder.
Sourcepub fn build(self) -> InteractionResponse
pub fn build(self) -> InteractionResponse
Builds the InteractionResponse.
Trait Implementations§
Source§impl Clone for ModalBuilder
impl Clone for ModalBuilder
Source§impl Debug for ModalBuilder
impl Debug for ModalBuilder
Source§impl From<ModalBuilder> for InteractionResponse
impl From<ModalBuilder> for InteractionResponse
Source§fn from(builder: ModalBuilder) -> Self
fn from(builder: ModalBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for ModalBuilder
impl Freeze for ModalBuilderwhere
*const u8 is !null: Freeze,
PhantomData<MentionType>: Freeze,
PhantomData<Id<RoleMarker>>: Freeze,
PhantomData<Id<UserMarker>>: Freeze,
PhantomData<Attachment>: Freeze,
PhantomData<CommandOptionChoice>: Freeze,
PhantomData<Component>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Embed>: Freeze,
InternalBitFlags: Freeze,
PhantomData<PollAnswer>: Freeze,
NonZero<i32>: Freeze,
PhantomData<fn(EmojiMarker) -> EmojiMarker>: Freeze,
NonZero<u64>: Freeze,
PhantomData<AnswerCount>: Freeze,
impl Move for ModalBuilder
impl RefUnwindSafe for ModalBuilderwhere
NonZero<u64>: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
NonZero<i32>: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
impl Send for ModalBuilder
impl Sync for ModalBuilder
impl Unpin for ModalBuilder
impl UnsafeUnpin for ModalBuilderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<MentionType>: UnsafeUnpin,
PhantomData<Id<RoleMarker>>: UnsafeUnpin,
PhantomData<Id<UserMarker>>: UnsafeUnpin,
PhantomData<Attachment>: UnsafeUnpin,
PhantomData<CommandOptionChoice>: UnsafeUnpin,
PhantomData<Component>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Embed>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
PhantomData<PollAnswer>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
PhantomData<fn(EmojiMarker) -> EmojiMarker>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
PhantomData<AnswerCount>: UnsafeUnpin,
impl UnwindSafe for ModalBuilderwhere
RawVecInner: UnwindSafe,
NonZero<u64>: UnwindSafe,
HashMap<String, String>: UnwindSafe,
InternalBitFlags: UnwindSafe,
BoxRaw<Component>: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
NonZero<i32>: UnwindSafe,
InternalBitFlags: UnwindSafe,
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