pub struct StringSelectMenuOptionBuilder { /* private fields */ }Expand description
Builds an option of a string select menu
with more than a label and a value, for StringSelectMenuBuilder::option_with.
discord.js counterpart: StringSelectMenuOptionBuilder.
Implementations§
Source§impl StringSelectMenuOptionBuilder
impl StringSelectMenuOptionBuilder
Sourcepub fn new(
label: impl Into<CompactString>,
value: impl Into<CompactString>,
) -> Self
pub fn new( label: impl Into<CompactString>, value: impl Into<CompactString>, ) -> Self
Creates an option showing label (1-100 characters) and sending value (1-100
characters).
discord.js counterpart: new StringSelectMenuOptionBuilder().setLabel(…).setValue(…).
Sourcepub fn description(self, description: impl Into<CompactString>) -> Self
pub fn description(self, description: impl Into<CompactString>) -> Self
Sets the smaller text under the label (at most 100 characters).
discord.js counterpart: setDescription.
Trait Implementations§
impl Eq for StringSelectMenuOptionBuilder
Source§impl From<StringSelectMenuOptionBuilder> for SelectOption
impl From<StringSelectMenuOptionBuilder> for SelectOption
Source§fn from(option: StringSelectMenuOptionBuilder) -> Self
fn from(option: StringSelectMenuOptionBuilder) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for StringSelectMenuOptionBuilder
Auto Trait Implementations§
impl Freeze for StringSelectMenuOptionBuilder
impl RefUnwindSafe for StringSelectMenuOptionBuilder
impl Send for StringSelectMenuOptionBuilder
impl Sync for StringSelectMenuOptionBuilder
impl Unpin for StringSelectMenuOptionBuilder
impl UnsafeUnpin for StringSelectMenuOptionBuilder
impl UnwindSafe for StringSelectMenuOptionBuilder
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