pub struct SlackBlockFileInputElement {
pub action_id: Option<SlackActionId>,
pub filetypes: Option<Vec<String>>,
pub max_files: Option<u64>,
}Expand description
- https://docs.slack.dev/reference/block-kit/block-elements/file-input-element
Fields§
§action_id: Option<SlackActionId>§filetypes: Option<Vec<String>>§max_files: Option<u64>Implementations§
Source§impl SlackBlockFileInputElement
impl SlackBlockFileInputElement
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackBlockFileInputElement 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 reset_filetypes(&mut self) -> &mut Self
pub fn reset_filetypes(&mut self) -> &mut Self
Sets filetypes to None.
Sourcepub fn mopt_filetypes(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn mopt_filetypes(&mut self, value: Option<Vec<String>>) -> &mut Self
Sets filetypes to the given Option.
Sourcepub fn with_filetypes(self, value: Vec<String>) -> Self
pub fn with_filetypes(self, value: Vec<String>) -> Self
Returns self with filetypes set to Some(value).
Sourcepub fn without_filetypes(self) -> Self
pub fn without_filetypes(self) -> Self
Returns self with filetypes set to None.
Sourcepub fn opt_filetypes(self, value: Option<Vec<String>>) -> Self
pub fn opt_filetypes(self, value: Option<Vec<String>>) -> Self
Returns self with filetypes set to the given Option.
Sourcepub fn reset_max_files(&mut self) -> &mut Self
pub fn reset_max_files(&mut self) -> &mut Self
Sets max_files to None.
Sourcepub fn mopt_max_files(&mut self, value: Option<u64>) -> &mut Self
pub fn mopt_max_files(&mut self, value: Option<u64>) -> &mut Self
Sets max_files to the given Option.
Sourcepub fn with_max_files(self, value: u64) -> Self
pub fn with_max_files(self, value: u64) -> Self
Returns self with max_files set to Some(value).
Sourcepub fn without_max_files(self) -> Self
pub fn without_max_files(self) -> Self
Returns self with max_files set to None.
Sourcepub fn opt_max_files(self, value: Option<u64>) -> Self
pub fn opt_max_files(self, value: Option<u64>) -> Self
Returns self with max_files set to the given Option.