pub struct OptionBuilder(/* private fields */);Expand description
An option of a slash command.
Implementations§
Source§impl OptionBuilder
impl OptionBuilder
Sourcepub const fn autocomplete(self) -> Self
pub const fn autocomplete(self) -> Self
The bot suggests values as the member types.
Trait Implementations§
Source§impl Clone for OptionBuilder
impl Clone for OptionBuilder
Source§fn clone(&self) -> OptionBuilder
fn clone(&self) -> OptionBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OptionBuilder
impl RefUnwindSafe for OptionBuilder
impl Send for OptionBuilder
impl Sync for OptionBuilder
impl Unpin for OptionBuilder
impl UnsafeUnpin for OptionBuilder
impl UnwindSafe for OptionBuilder
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