pub struct SlackBlockPlainTextInputElement {
pub action_id: SlackActionId,
pub placeholder: Option<SlackBlockPlainTextOnly>,
pub initial_value: Option<String>,
pub multiline: Option<bool>,
pub min_length: Option<u64>,
pub max_length: Option<u64>,
pub focus_on_load: Option<bool>,
pub dispatch_action_config: Option<SlackDispatchActionConfig>,
}Fields§
§action_id: SlackActionId§placeholder: Option<SlackBlockPlainTextOnly>§initial_value: Option<String>§multiline: Option<bool>§min_length: Option<u64>§max_length: Option<u64>§focus_on_load: Option<bool>§dispatch_action_config: Option<SlackDispatchActionConfig>Implementations§
Source§impl SlackBlockPlainTextInputElement
impl SlackBlockPlainTextInputElement
Sourcepub fn new(action_id: SlackActionId) -> Self
pub fn new(action_id: SlackActionId) -> Self
Creates a new SlackBlockPlainTextInputElement from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn action_id(&mut self, value: SlackActionId) -> &mut Self
pub fn action_id(&mut self, value: SlackActionId) -> &mut Self
Sets action_id to value.
Sourcepub fn with_action_id(self, value: SlackActionId) -> Self
pub fn with_action_id(self, value: SlackActionId) -> Self
Returns self with action_id set to value.
Sourcepub fn placeholder(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn placeholder(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
Sets placeholder to Some(value).
Sourcepub fn reset_placeholder(&mut self) -> &mut Self
pub fn reset_placeholder(&mut self) -> &mut Self
Sets placeholder to None.
Sourcepub fn mopt_placeholder(
&mut self,
value: Option<SlackBlockPlainTextOnly>,
) -> &mut Self
pub fn mopt_placeholder( &mut self, value: Option<SlackBlockPlainTextOnly>, ) -> &mut Self
Sets placeholder to the given Option.
Sourcepub fn with_placeholder(self, value: SlackBlockPlainTextOnly) -> Self
pub fn with_placeholder(self, value: SlackBlockPlainTextOnly) -> Self
Returns self with placeholder set to Some(value).
Sourcepub fn without_placeholder(self) -> Self
pub fn without_placeholder(self) -> Self
Returns self with placeholder set to None.
Sourcepub fn opt_placeholder(self, value: Option<SlackBlockPlainTextOnly>) -> Self
pub fn opt_placeholder(self, value: Option<SlackBlockPlainTextOnly>) -> Self
Returns self with placeholder set to the given Option.
Sourcepub fn initial_value(&mut self, value: String) -> &mut Self
pub fn initial_value(&mut self, value: String) -> &mut Self
Sets initial_value to Some(value).
Sourcepub fn reset_initial_value(&mut self) -> &mut Self
pub fn reset_initial_value(&mut self) -> &mut Self
Sets initial_value to None.
Sourcepub fn mopt_initial_value(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_initial_value(&mut self, value: Option<String>) -> &mut Self
Sets initial_value to the given Option.
Sourcepub fn with_initial_value(self, value: String) -> Self
pub fn with_initial_value(self, value: String) -> Self
Returns self with initial_value set to Some(value).
Sourcepub fn without_initial_value(self) -> Self
pub fn without_initial_value(self) -> Self
Returns self with initial_value set to None.
Sourcepub fn opt_initial_value(self, value: Option<String>) -> Self
pub fn opt_initial_value(self, value: Option<String>) -> Self
Returns self with initial_value set to the given Option.
Sourcepub fn reset_multiline(&mut self) -> &mut Self
pub fn reset_multiline(&mut self) -> &mut Self
Sets multiline to None.
Sourcepub fn mopt_multiline(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_multiline(&mut self, value: Option<bool>) -> &mut Self
Sets multiline to the given Option.
Sourcepub fn with_multiline(self, value: bool) -> Self
pub fn with_multiline(self, value: bool) -> Self
Returns self with multiline set to Some(value).
Sourcepub fn without_multiline(self) -> Self
pub fn without_multiline(self) -> Self
Returns self with multiline set to None.
Sourcepub fn opt_multiline(self, value: Option<bool>) -> Self
pub fn opt_multiline(self, value: Option<bool>) -> Self
Returns self with multiline set to the given Option.
Sourcepub fn min_length(&mut self, value: u64) -> &mut Self
pub fn min_length(&mut self, value: u64) -> &mut Self
Sets min_length to Some(value).
Sourcepub fn reset_min_length(&mut self) -> &mut Self
pub fn reset_min_length(&mut self) -> &mut Self
Sets min_length to None.
Sourcepub fn mopt_min_length(&mut self, value: Option<u64>) -> &mut Self
pub fn mopt_min_length(&mut self, value: Option<u64>) -> &mut Self
Sets min_length to the given Option.
Sourcepub fn with_min_length(self, value: u64) -> Self
pub fn with_min_length(self, value: u64) -> Self
Returns self with min_length set to Some(value).
Sourcepub fn without_min_length(self) -> Self
pub fn without_min_length(self) -> Self
Returns self with min_length set to None.
Sourcepub fn opt_min_length(self, value: Option<u64>) -> Self
pub fn opt_min_length(self, value: Option<u64>) -> Self
Returns self with min_length set to the given Option.
Sourcepub fn max_length(&mut self, value: u64) -> &mut Self
pub fn max_length(&mut self, value: u64) -> &mut Self
Sets max_length to Some(value).
Sourcepub fn reset_max_length(&mut self) -> &mut Self
pub fn reset_max_length(&mut self) -> &mut Self
Sets max_length to None.
Sourcepub fn mopt_max_length(&mut self, value: Option<u64>) -> &mut Self
pub fn mopt_max_length(&mut self, value: Option<u64>) -> &mut Self
Sets max_length to the given Option.
Sourcepub fn with_max_length(self, value: u64) -> Self
pub fn with_max_length(self, value: u64) -> Self
Returns self with max_length set to Some(value).
Sourcepub fn without_max_length(self) -> Self
pub fn without_max_length(self) -> Self
Returns self with max_length set to None.
Sourcepub fn opt_max_length(self, value: Option<u64>) -> Self
pub fn opt_max_length(self, value: Option<u64>) -> Self
Returns self with max_length set to the given Option.
Sourcepub fn focus_on_load(&mut self, value: bool) -> &mut Self
pub fn focus_on_load(&mut self, value: bool) -> &mut Self
Sets focus_on_load to Some(value).
Sourcepub fn reset_focus_on_load(&mut self) -> &mut Self
pub fn reset_focus_on_load(&mut self) -> &mut Self
Sets focus_on_load to None.
Sourcepub fn mopt_focus_on_load(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_focus_on_load(&mut self, value: Option<bool>) -> &mut Self
Sets focus_on_load to the given Option.
Sourcepub fn with_focus_on_load(self, value: bool) -> Self
pub fn with_focus_on_load(self, value: bool) -> Self
Returns self with focus_on_load set to Some(value).
Sourcepub fn without_focus_on_load(self) -> Self
pub fn without_focus_on_load(self) -> Self
Returns self with focus_on_load set to None.
Sourcepub fn opt_focus_on_load(self, value: Option<bool>) -> Self
pub fn opt_focus_on_load(self, value: Option<bool>) -> Self
Returns self with focus_on_load set to the given Option.
Sourcepub fn dispatch_action_config(
&mut self,
value: SlackDispatchActionConfig,
) -> &mut Self
pub fn dispatch_action_config( &mut self, value: SlackDispatchActionConfig, ) -> &mut Self
Sets dispatch_action_config to Some(value).
Sourcepub fn reset_dispatch_action_config(&mut self) -> &mut Self
pub fn reset_dispatch_action_config(&mut self) -> &mut Self
Sets dispatch_action_config to None.
Sourcepub fn mopt_dispatch_action_config(
&mut self,
value: Option<SlackDispatchActionConfig>,
) -> &mut Self
pub fn mopt_dispatch_action_config( &mut self, value: Option<SlackDispatchActionConfig>, ) -> &mut Self
Sets dispatch_action_config to the given Option.
Sourcepub fn with_dispatch_action_config(
self,
value: SlackDispatchActionConfig,
) -> Self
pub fn with_dispatch_action_config( self, value: SlackDispatchActionConfig, ) -> Self
Returns self with dispatch_action_config set to Some(value).
Sourcepub fn without_dispatch_action_config(self) -> Self
pub fn without_dispatch_action_config(self) -> Self
Returns self with dispatch_action_config set to None.
Sourcepub fn opt_dispatch_action_config(
self,
value: Option<SlackDispatchActionConfig>,
) -> Self
pub fn opt_dispatch_action_config( self, value: Option<SlackDispatchActionConfig>, ) -> Self
Returns self with dispatch_action_config set to the given Option.