pub struct NumberInputElement { /* private fields */ }Expand description
An input that accepts whole or decimal numbers.
Slack reference. The minimum value cannot exceed the maximum value.
Implementations§
Source§impl NumberInputElement
impl NumberInputElement
Sourcepub fn builder() -> NumberInputElementBuilder
pub fn builder() -> NumberInputElementBuilder
Starts a builder with the documented model defaults.
Sourcepub fn into_builder(self) -> NumberInputElementBuilder
pub fn into_builder(self) -> NumberInputElementBuilder
Moves every field into an editable builder, preserving explicit omissions.
Sourcepub fn action_id(&self) -> Option<&str>
pub fn action_id(&self) -> Option<&str>
Borrows or copies action_id. Sets the identifier Slack returns in interaction payloads when a user acts on this element. It must be unique among the elements of its block.
Sourcepub fn is_decimal_allowed(&self) -> bool
pub fn is_decimal_allowed(&self) -> bool
Borrows or copies is_decimal_allowed. Sets whether the input accepts decimal numbers.
Sourcepub fn initial_value(&self) -> Option<&str>
pub fn initial_value(&self) -> Option<&str>
Borrows or copies initial_value. Sets the number present when the input loads, as a string such as 42 or 3.5.
Sourcepub fn min_value(&self) -> Option<&str>
pub fn min_value(&self) -> Option<&str>
Borrows or copies min_value. Sets the smallest accepted number. Sent as a finite numeric string; native numeric convenience arguments are converted to strings.
Sourcepub fn max_value(&self) -> Option<&str>
pub fn max_value(&self) -> Option<&str>
Borrows or copies max_value. Sets the largest accepted number. Sent as a finite numeric string; native numeric convenience arguments are converted to strings.
Sourcepub fn dispatch_action_config(&self) -> Option<&DispatchActionConfiguration>
pub fn dispatch_action_config(&self) -> Option<&DispatchActionConfiguration>
Borrows or copies dispatch_action_config. Sets which user interactions send a block_actions payload.
Sourcepub fn focus_on_load(&self) -> Option<bool>
pub fn focus_on_load(&self) -> Option<bool>
Borrows or copies focus_on_load. Sets whether the element receives focus when the view opens. Only one element per view may do so.
Sourcepub fn placeholder(&self) -> Option<&PlainText>
pub fn placeholder(&self) -> Option<&PlainText>
Borrows or copies placeholder. Sets the placeholder text shown before a value is chosen.
Sourcepub fn extensions(&self) -> &Map<String, Value>
pub fn extensions(&self) -> &Map<String, Value>
Borrows checked, unmodeled JSON extension fields.