pub struct SlackBlockNumberInputElement {
pub action_id: SlackActionId,
pub is_decimal_allowed: bool,
pub focus_on_load: Option<bool>,
pub placeholder: Option<SlackBlockPlainTextOnly>,
pub initial_value: Option<String>,
pub min_value: Option<String>,
pub max_value: Option<String>,
}Fields§
§action_id: SlackActionId§is_decimal_allowed: bool§focus_on_load: Option<bool>§placeholder: Option<SlackBlockPlainTextOnly>§initial_value: Option<String>§min_value: Option<String>§max_value: Option<String>Implementations§
Source§impl SlackBlockNumberInputElement
impl SlackBlockNumberInputElement
Sourcepub fn new(action_id: SlackActionId, is_decimal_allowed: bool) -> Self
pub fn new(action_id: SlackActionId, is_decimal_allowed: bool) -> Self
Creates a new SlackBlockNumberInputElement 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 is_decimal_allowed(&mut self, value: bool) -> &mut Self
pub fn is_decimal_allowed(&mut self, value: bool) -> &mut Self
Sets is_decimal_allowed to value.
Sourcepub fn with_is_decimal_allowed(self, value: bool) -> Self
pub fn with_is_decimal_allowed(self, value: bool) -> Self
Returns self with is_decimal_allowed set to value.
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 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_min_value(&mut self) -> &mut Self
pub fn reset_min_value(&mut self) -> &mut Self
Sets min_value to None.
Sourcepub fn mopt_min_value(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_min_value(&mut self, value: Option<String>) -> &mut Self
Sets min_value to the given Option.
Sourcepub fn with_min_value(self, value: String) -> Self
pub fn with_min_value(self, value: String) -> Self
Returns self with min_value set to Some(value).
Sourcepub fn without_min_value(self) -> Self
pub fn without_min_value(self) -> Self
Returns self with min_value set to None.
Sourcepub fn opt_min_value(self, value: Option<String>) -> Self
pub fn opt_min_value(self, value: Option<String>) -> Self
Returns self with min_value set to the given Option.
Sourcepub fn reset_max_value(&mut self) -> &mut Self
pub fn reset_max_value(&mut self) -> &mut Self
Sets max_value to None.
Sourcepub fn mopt_max_value(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_max_value(&mut self, value: Option<String>) -> &mut Self
Sets max_value to the given Option.
Sourcepub fn with_max_value(self, value: String) -> Self
pub fn with_max_value(self, value: String) -> Self
Returns self with max_value set to Some(value).
Sourcepub fn without_max_value(self) -> Self
pub fn without_max_value(self) -> Self
Returns self with max_value set to None.
Sourcepub fn opt_max_value(self, value: Option<String>) -> Self
pub fn opt_max_value(self, value: Option<String>) -> Self
Returns self with max_value set to the given Option.