pub struct SlackBlockUrlInputElement {
pub action_id: Option<SlackActionId>,
pub placeholder: Option<SlackBlockPlainTextOnly>,
pub initial_value: Option<String>,
}Fields§
§action_id: Option<SlackActionId>§placeholder: Option<SlackBlockPlainTextOnly>§initial_value: Option<String>Implementations§
Source§impl SlackBlockUrlInputElement
impl SlackBlockUrlInputElement
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackBlockUrlInputElement 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 Some(value).
Sourcepub fn reset_action_id(&mut self) -> &mut Self
pub fn reset_action_id(&mut self) -> &mut Self
Sets action_id to None.
Sourcepub fn mopt_action_id(&mut self, value: Option<SlackActionId>) -> &mut Self
pub fn mopt_action_id(&mut self, value: Option<SlackActionId>) -> &mut Self
Sets action_id to the given Option.
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 Some(value).
Sourcepub fn without_action_id(self) -> Self
pub fn without_action_id(self) -> Self
Returns self with action_id set to None.
Sourcepub fn opt_action_id(self, value: Option<SlackActionId>) -> Self
pub fn opt_action_id(self, value: Option<SlackActionId>) -> Self
Returns self with action_id 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.