pub struct MultiSelectMenuStaticOptionsBuilder { /* private fields */ }Expand description
Builder for MultiSelectMenuStaticOptions object.
Implementations§
Source§impl MultiSelectMenuStaticOptionsBuilder
impl MultiSelectMenuStaticOptionsBuilder
Sourcepub fn get_action_id(&self) -> Option<&String>
pub fn get_action_id(&self) -> Option<&String>
get action_id field value.
Sourcepub fn set_action_id(self, value: Option<impl Into<String>>) -> Self
pub fn set_action_id(self, value: Option<impl Into<String>>) -> Self
set action_id field value.
Sourcepub fn get_options(&self) -> Option<&[Opt]>
pub fn get_options(&self) -> Option<&[Opt]>
get options field value.
Sourcepub fn get_option_groups(&self) -> Option<&[OptGroup]>
pub fn get_option_groups(&self) -> Option<&[OptGroup]>
get option_groups field value.
Sourcepub fn set_option_groups(self, value: Option<impl Into<Vec<OptGroup>>>) -> Self
pub fn set_option_groups(self, value: Option<impl Into<Vec<OptGroup>>>) -> Self
set option_groups field value.
Sourcepub fn option_groups(self, value: impl Into<Vec<OptGroup>>) -> Self
pub fn option_groups(self, value: impl Into<Vec<OptGroup>>) -> Self
set option_groups field value.
Sourcepub fn option_group(self, value: impl Into<OptGroup>) -> Self
pub fn option_group(self, value: impl Into<OptGroup>) -> Self
push list element to option_groups field.
Sourcepub fn get_initial_options(&self) -> Option<&[Opt]>
pub fn get_initial_options(&self) -> Option<&[Opt]>
get initial_options field value.
Sourcepub fn set_initial_options(self, value: Option<impl Into<Vec<Opt>>>) -> Self
pub fn set_initial_options(self, value: Option<impl Into<Vec<Opt>>>) -> Self
set initial_options field value.
Sourcepub fn initial_options(self, value: impl Into<Vec<Opt>>) -> Self
pub fn initial_options(self, value: impl Into<Vec<Opt>>) -> Self
set initial_options field value.
Sourcepub fn initial_option(self, value: impl Into<Opt>) -> Self
pub fn initial_option(self, value: impl Into<Opt>) -> Self
push list element to initial_options field.
Sourcepub fn get_confirm(&self) -> Option<&ConfirmationDialog>
pub fn get_confirm(&self) -> Option<&ConfirmationDialog>
get confirm field value.
Sourcepub fn set_confirm(self, value: Option<impl Into<ConfirmationDialog>>) -> Self
pub fn set_confirm(self, value: Option<impl Into<ConfirmationDialog>>) -> Self
set confirm field value.
Sourcepub fn confirm(self, value: impl Into<ConfirmationDialog>) -> Self
pub fn confirm(self, value: impl Into<ConfirmationDialog>) -> Self
set confirm field value.
Sourcepub fn get_max_selected_items(&self) -> Option<i64>
pub fn get_max_selected_items(&self) -> Option<i64>
get max_selected_items field value.
Sourcepub fn set_max_selected_items(self, value: Option<impl Into<i64>>) -> Self
pub fn set_max_selected_items(self, value: Option<impl Into<i64>>) -> Self
set max_selected_items field value.
Sourcepub fn max_selected_items(self, value: impl Into<i64>) -> Self
pub fn max_selected_items(self, value: impl Into<i64>) -> Self
set max_selected_items field value.
Sourcepub fn get_focus_on_load(&self) -> Option<bool>
pub fn get_focus_on_load(&self) -> Option<bool>
get focus_on_load field value.
Sourcepub fn set_focus_on_load(self, value: Option<impl Into<bool>>) -> Self
pub fn set_focus_on_load(self, value: Option<impl Into<bool>>) -> Self
set focus_on_load field value.
Sourcepub fn focus_on_load(self, value: impl Into<bool>) -> Self
pub fn focus_on_load(self, value: impl Into<bool>) -> Self
set focus_on_load field value.
Sourcepub fn get_placeholder(&self) -> Option<&Text<Plain>>
pub fn get_placeholder(&self) -> Option<&Text<Plain>>
get placeholder field value.
Sourcepub fn set_placeholder(self, value: Option<impl Into<Text<Plain>>>) -> Self
pub fn set_placeholder(self, value: Option<impl Into<Text<Plain>>>) -> Self
set placeholder field value.
Sourcepub fn placeholder(self, value: impl Into<Text<Plain>>) -> Self
pub fn placeholder(self, value: impl Into<Text<Plain>>) -> Self
set placeholder field value.
Sourcepub fn build(self) -> Result<MultiSelectMenuStaticOptions, ValidationErrors>
pub fn build(self) -> Result<MultiSelectMenuStaticOptions, ValidationErrors>
build MultiSelectMenuStaticOptions object.