pub struct SlackInputBlock {
pub block_id: Option<SlackBlockId>,
pub label: SlackBlockPlainTextOnly,
pub element: SlackInputBlockElement,
pub hint: Option<SlackBlockPlainTextOnly>,
pub optional: Option<bool>,
pub dispatch_action: Option<bool>,
}Fields§
§block_id: Option<SlackBlockId>§label: SlackBlockPlainTextOnly§element: SlackInputBlockElement§hint: Option<SlackBlockPlainTextOnly>§optional: Option<bool>§dispatch_action: Option<bool>Implementations§
Source§impl SlackInputBlock
impl SlackInputBlock
Sourcepub fn new(
label: SlackBlockPlainTextOnly,
element: SlackInputBlockElement,
) -> Self
pub fn new( label: SlackBlockPlainTextOnly, element: SlackInputBlockElement, ) -> Self
Creates a new SlackInputBlock from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn block_id(&mut self, value: SlackBlockId) -> &mut Self
pub fn block_id(&mut self, value: SlackBlockId) -> &mut Self
Sets block_id to Some(value).
Sourcepub fn reset_block_id(&mut self) -> &mut Self
pub fn reset_block_id(&mut self) -> &mut Self
Sets block_id to None.
Sourcepub fn mopt_block_id(&mut self, value: Option<SlackBlockId>) -> &mut Self
pub fn mopt_block_id(&mut self, value: Option<SlackBlockId>) -> &mut Self
Sets block_id to the given Option.
Sourcepub fn with_block_id(self, value: SlackBlockId) -> Self
pub fn with_block_id(self, value: SlackBlockId) -> Self
Returns self with block_id set to Some(value).
Sourcepub fn without_block_id(self) -> Self
pub fn without_block_id(self) -> Self
Returns self with block_id set to None.
Sourcepub fn opt_block_id(self, value: Option<SlackBlockId>) -> Self
pub fn opt_block_id(self, value: Option<SlackBlockId>) -> Self
Returns self with block_id set to the given Option.
Sourcepub fn label(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn label(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
Sets label to value.
Sourcepub fn with_label(self, value: SlackBlockPlainTextOnly) -> Self
pub fn with_label(self, value: SlackBlockPlainTextOnly) -> Self
Returns self with label set to value.
Sourcepub fn element(&mut self, value: SlackInputBlockElement) -> &mut Self
pub fn element(&mut self, value: SlackInputBlockElement) -> &mut Self
Sets element to value.
Sourcepub fn with_element(self, value: SlackInputBlockElement) -> Self
pub fn with_element(self, value: SlackInputBlockElement) -> Self
Returns self with element set to value.
Sourcepub fn hint(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn hint(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
Sets hint to Some(value).
Sourcepub fn reset_hint(&mut self) -> &mut Self
pub fn reset_hint(&mut self) -> &mut Self
Sets hint to None.
Sourcepub fn mopt_hint(&mut self, value: Option<SlackBlockPlainTextOnly>) -> &mut Self
pub fn mopt_hint(&mut self, value: Option<SlackBlockPlainTextOnly>) -> &mut Self
Sets hint to the given Option.
Sourcepub fn with_hint(self, value: SlackBlockPlainTextOnly) -> Self
pub fn with_hint(self, value: SlackBlockPlainTextOnly) -> Self
Returns self with hint set to Some(value).
Sourcepub fn without_hint(self) -> Self
pub fn without_hint(self) -> Self
Returns self with hint set to None.
Sourcepub fn opt_hint(self, value: Option<SlackBlockPlainTextOnly>) -> Self
pub fn opt_hint(self, value: Option<SlackBlockPlainTextOnly>) -> Self
Returns self with hint set to the given Option.
Sourcepub fn reset_optional(&mut self) -> &mut Self
pub fn reset_optional(&mut self) -> &mut Self
Sets optional to None.
Sourcepub fn mopt_optional(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_optional(&mut self, value: Option<bool>) -> &mut Self
Sets optional to the given Option.
Sourcepub fn with_optional(self, value: bool) -> Self
pub fn with_optional(self, value: bool) -> Self
Returns self with optional set to Some(value).
Sourcepub fn without_optional(self) -> Self
pub fn without_optional(self) -> Self
Returns self with optional set to None.
Sourcepub fn opt_optional(self, value: Option<bool>) -> Self
pub fn opt_optional(self, value: Option<bool>) -> Self
Returns self with optional set to the given Option.
Sourcepub fn dispatch_action(&mut self, value: bool) -> &mut Self
pub fn dispatch_action(&mut self, value: bool) -> &mut Self
Sets dispatch_action to Some(value).
Sourcepub fn reset_dispatch_action(&mut self) -> &mut Self
pub fn reset_dispatch_action(&mut self) -> &mut Self
Sets dispatch_action to None.
Sourcepub fn mopt_dispatch_action(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_dispatch_action(&mut self, value: Option<bool>) -> &mut Self
Sets dispatch_action to the given Option.
Sourcepub fn with_dispatch_action(self, value: bool) -> Self
pub fn with_dispatch_action(self, value: bool) -> Self
Returns self with dispatch_action set to Some(value).
Sourcepub fn without_dispatch_action(self) -> Self
pub fn without_dispatch_action(self) -> Self
Returns self with dispatch_action set to None.
Sourcepub fn opt_dispatch_action(self, value: Option<bool>) -> Self
pub fn opt_dispatch_action(self, value: Option<bool>) -> Self
Returns self with dispatch_action set to the given Option.