pub struct SelectBlockElementBuilder {
pub placeholder: TextBlockObject,
pub action_id: String,
pub options: Vec<OptionBlockObject>,
pub option_groups: Option<Vec<OptionGroupBlockObject>>,
pub initial_option: Option<OptionBlockObject>,
pub initial_users: Option<Vec<String>>,
pub initial_conversations: Option<Vec<String>>,
pub initial_channels: Option<Vec<String>>,
pub confirm: Option<ConfirmationBlockObject>,
pub min_query_length: Option<i32>,
pub max_selected_items: Option<i32>,
pub focus_on_load: Option<bool>,
}Fields§
§placeholder: TextBlockObject§action_id: String§options: Vec<OptionBlockObject>§option_groups: Option<Vec<OptionGroupBlockObject>>§initial_option: Option<OptionBlockObject>§initial_users: Option<Vec<String>>§initial_conversations: Option<Vec<String>>§initial_channels: Option<Vec<String>>§confirm: Option<ConfirmationBlockObject>§min_query_length: Option<i32>§max_selected_items: Option<i32>§focus_on_load: Option<bool>Implementations§
Source§impl SelectBlockElementBuilder
impl SelectBlockElementBuilder
pub fn new( placeholder: TextBlockObject, action_id: String, options: Vec<OptionBlockObject>, ) -> SelectBlockElementBuilder
pub fn option_groups( self, option_groups: Vec<OptionGroupBlockObject>, ) -> SelectBlockElementBuilder
pub fn initial_option( self, initial_option: OptionBlockObject, ) -> SelectBlockElementBuilder
pub fn initial_users( self, initial_users: Vec<String>, ) -> SelectBlockElementBuilder
pub fn initial_conversations( self, initial_conversations: Vec<String>, ) -> SelectBlockElementBuilder
pub fn initial_channels( self, initial_channels: Vec<String>, ) -> SelectBlockElementBuilder
pub fn confirm( self, confirm: ConfirmationBlockObject, ) -> SelectBlockElementBuilder
pub fn min_query_lengths( self, min_query_length: i32, ) -> SelectBlockElementBuilder
pub fn max_selected_items( self, max_selected_items: i32, ) -> SelectBlockElementBuilder
pub fn focus_on_load(self, focus_on_load: bool) -> SelectBlockElementBuilder
pub fn build(self) -> SelectBlockElement
Trait Implementations§
Source§impl Debug for SelectBlockElementBuilder
impl Debug for SelectBlockElementBuilder
Source§impl Default for SelectBlockElementBuilder
impl Default for SelectBlockElementBuilder
Source§fn default() -> SelectBlockElementBuilder
fn default() -> SelectBlockElementBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SelectBlockElementBuilder
impl RefUnwindSafe for SelectBlockElementBuilder
impl Send for SelectBlockElementBuilder
impl Sync for SelectBlockElementBuilder
impl Unpin for SelectBlockElementBuilder
impl UnwindSafe for SelectBlockElementBuilder
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