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§fn clone(&self) -> AutocompleteBuilder
fn clone(&self) -> AutocompleteBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 Freeze for AutocompleteBuilder
impl RefUnwindSafe for AutocompleteBuilder
impl Send for AutocompleteBuilder
impl Sync for AutocompleteBuilder
impl Unpin for AutocompleteBuilder
impl UnsafeUnpin for AutocompleteBuilder
impl UnwindSafe for AutocompleteBuilder
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