pub struct EmailInputElementBuilder { /* private fields */ }Expand description
Consuming builder for EmailInputElement. Validation runs in Self::build.
Implementations§
Source§impl EmailInputElementBuilder
impl EmailInputElementBuilder
Sourcepub fn action_id(self, value: impl Into<String>) -> Self
pub fn action_id(self, value: impl Into<String>) -> Self
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 clear_action_id(self) -> Self
pub fn clear_action_id(self) -> Self
Omits action_id, including any model default.
Sourcepub fn initial_value(self, value: impl Into<String>) -> Self
pub fn initial_value(self, value: impl Into<String>) -> Self
Sets the value present when the input loads.
Sourcepub fn clear_initial_value(self) -> Self
pub fn clear_initial_value(self) -> Self
Omits initial_value, including any model default.
Sourcepub fn dispatch_action_config(
self,
value: impl Into<DispatchActionConfiguration>,
) -> Self
pub fn dispatch_action_config( self, value: impl Into<DispatchActionConfiguration>, ) -> Self
Sets which user interactions send a block_actions payload.
Sourcepub fn clear_dispatch_action_config(self) -> Self
pub fn clear_dispatch_action_config(self) -> Self
Omits dispatch_action_config, including any model default.
Sourcepub fn focus_on_load(self, value: bool) -> Self
pub fn focus_on_load(self, value: bool) -> Self
Sets whether the element receives focus when the view opens. Only one element per view may do so.
Sourcepub fn clear_focus_on_load(self) -> Self
pub fn clear_focus_on_load(self) -> Self
Omits focus_on_load, including any model default.
Sourcepub fn placeholder(self, value: impl Into<PlainTextInput>) -> Self
pub fn placeholder(self, value: impl Into<PlainTextInput>) -> Self
Sets the placeholder text shown before a value is chosen.
Sourcepub fn clear_placeholder(self) -> Self
pub fn clear_placeholder(self) -> Self
Omits placeholder, including any model default.
Sourcepub fn extension(self, key: impl Into<String>, value: impl Into<Value>) -> Self
pub fn extension(self, key: impl Into<String>, value: impl Into<Value>) -> Self
Adds or replaces an unmodeled extension; reserved names fail at build time.
Sourcepub fn build(self) -> Result<EmailInputElement, ValidationError>
pub fn build(self) -> Result<EmailInputElement, ValidationError>
Validates all fields and their receiving context.
§Errors
Returns a ValidationError for missing fields, invalid values, reserved
extension names, or unsupported field combinations and child contexts.