[][src]Struct block_kit::block_element::select_menu::StaticSelectMenuElement

pub struct StaticSelectMenuElement { /* fields omitted */ }

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.