pub struct AutocompleteBuilder(/* private fields */);Available on crate feature
builder only.Expand description
Builder for a InteractionResponse of type InteractionResponseType::ApplicationCommandAutocompleteResult.
Implementations§
Source§impl AutocompleteBuilder
impl AutocompleteBuilder
Sourcepub fn new(choices: impl IntoIterator<Item = CommandOptionChoice>) -> Self
pub fn new(choices: impl IntoIterator<Item = CommandOptionChoice>) -> 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 AutocompleteBuilder
impl Clone for AutocompleteBuilder
Source§impl Debug for AutocompleteBuilder
impl Debug for AutocompleteBuilder
Source§impl From<AutocompleteBuilder> for InteractionResponse
impl From<AutocompleteBuilder> for InteractionResponse
Source§fn from(builder: AutocompleteBuilder) -> Self
fn from(builder: AutocompleteBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for AutocompleteBuilder
impl Freeze for AutocompleteBuilderwhere
*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 AutocompleteBuilder
impl RefUnwindSafe for AutocompleteBuilderwhere
NonZero<u64>: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
NonZero<i32>: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
impl Send for AutocompleteBuilder
impl Sync for AutocompleteBuilder
impl Unpin for AutocompleteBuilder
impl UnsafeUnpin for AutocompleteBuilderwhere
*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 AutocompleteBuilderwhere
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