[−][src]Struct block_kit::block_element::select_menu::StaticSelectMenuElement
requires set options or option_groups to display.
Methods
impl StaticSelectMenuElement
[src]
pub fn new(
placeholder: impl Into<PlainText>,
action_id: impl Into<String>
) -> Self
[src]
placeholder: impl Into<PlainText>,
action_id: impl Into<String>
) -> Self
pub fn options(self, options: Vec<OptionObject>) -> Self
[src]
option_groups should not be if options is specified.
pub fn option_groups(self, option_groups: Vec<OptionGroup>) -> Self
[src]
options should not be if option_groups is specified.
pub fn initial_option(self, initial_option: OptionObject) -> Self
[src]
pub fn confirm(self, confirm: ConfirmationDialog) -> Self
[src]
Trait Implementations
impl Debug for StaticSelectMenuElement
[src]
impl Serialize for StaticSelectMenuElement
[src]
Auto Trait Implementations
impl RefUnwindSafe for StaticSelectMenuElement
impl Send for StaticSelectMenuElement
impl Sync for StaticSelectMenuElement
impl Unpin for StaticSelectMenuElement
impl UnwindSafe for StaticSelectMenuElement
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,