pub struct SlackApiFilesCompleteUploadExternalRequest {
pub files: Vec<SlackApiFilesComplete>,
pub channel_id: Option<SlackChannelId>,
pub channels: Option<Vec<SlackChannelId>>,
pub initial_comment: Option<String>,
pub blocks: Option<Vec<SlackBlock>>,
pub thread_ts: Option<SlackTs>,
pub username: Option<String>,
pub icon_url: Option<Url>,
pub icon_emoji: Option<SlackEmoji>,
}Expand description
https://api.slack.com/methods/files.completeUploadExternal
initial_comment and blocks are mutually exclusive: when initial_comment is set,
Slack ignores blocks.
Fields§
§files: Vec<SlackApiFilesComplete>§channel_id: Option<SlackChannelId>§channels: Option<Vec<SlackChannelId>>§initial_comment: Option<String>§blocks: Option<Vec<SlackBlock>>Blocks for the file share message.
Note: as of September 2026 Slack answers internal_error when this contains a
markdown block, in every request encoding, while the same block is accepted by
chat.postMessage. section and rich_text blocks work. Tracked upstream in
https://github.com/slackapi/python-slack-sdk/issues/1756
thread_ts: Option<SlackTs>§username: Option<String>§icon_url: Option<Url>§icon_emoji: Option<SlackEmoji>Implementations§
Source§impl SlackApiFilesCompleteUploadExternalRequest
impl SlackApiFilesCompleteUploadExternalRequest
Sourcepub fn new(files: Vec<SlackApiFilesComplete>) -> Self
pub fn new(files: Vec<SlackApiFilesComplete>) -> Self
Creates a new SlackApiFilesCompleteUploadExternalRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn files(&mut self, value: Vec<SlackApiFilesComplete>) -> &mut Self
pub fn files(&mut self, value: Vec<SlackApiFilesComplete>) -> &mut Self
Sets files to value.
Sourcepub fn with_files(self, value: Vec<SlackApiFilesComplete>) -> Self
pub fn with_files(self, value: Vec<SlackApiFilesComplete>) -> Self
Returns self with files set to value.
Sourcepub fn channel_id(&mut self, value: SlackChannelId) -> &mut Self
pub fn channel_id(&mut self, value: SlackChannelId) -> &mut Self
Sets channel_id to Some(value).
Sourcepub fn reset_channel_id(&mut self) -> &mut Self
pub fn reset_channel_id(&mut self) -> &mut Self
Sets channel_id to None.
Sourcepub fn mopt_channel_id(&mut self, value: Option<SlackChannelId>) -> &mut Self
pub fn mopt_channel_id(&mut self, value: Option<SlackChannelId>) -> &mut Self
Sets channel_id to the given Option.
Sourcepub fn with_channel_id(self, value: SlackChannelId) -> Self
pub fn with_channel_id(self, value: SlackChannelId) -> Self
Returns self with channel_id set to Some(value).
Sourcepub fn without_channel_id(self) -> Self
pub fn without_channel_id(self) -> Self
Returns self with channel_id set to None.
Sourcepub fn opt_channel_id(self, value: Option<SlackChannelId>) -> Self
pub fn opt_channel_id(self, value: Option<SlackChannelId>) -> Self
Returns self with channel_id set to the given Option.
Sourcepub fn channels(&mut self, value: Vec<SlackChannelId>) -> &mut Self
pub fn channels(&mut self, value: Vec<SlackChannelId>) -> &mut Self
Sets channels to Some(value).
Sourcepub fn reset_channels(&mut self) -> &mut Self
pub fn reset_channels(&mut self) -> &mut Self
Sets channels to None.
Sourcepub fn mopt_channels(&mut self, value: Option<Vec<SlackChannelId>>) -> &mut Self
pub fn mopt_channels(&mut self, value: Option<Vec<SlackChannelId>>) -> &mut Self
Sets channels to the given Option.
Sourcepub fn with_channels(self, value: Vec<SlackChannelId>) -> Self
pub fn with_channels(self, value: Vec<SlackChannelId>) -> Self
Returns self with channels set to Some(value).
Sourcepub fn without_channels(self) -> Self
pub fn without_channels(self) -> Self
Returns self with channels set to None.
Sourcepub fn opt_channels(self, value: Option<Vec<SlackChannelId>>) -> Self
pub fn opt_channels(self, value: Option<Vec<SlackChannelId>>) -> Self
Returns self with channels set to the given Option.
Sourcepub fn initial_comment(&mut self, value: String) -> &mut Self
pub fn initial_comment(&mut self, value: String) -> &mut Self
Sets initial_comment to Some(value).
Sourcepub fn reset_initial_comment(&mut self) -> &mut Self
pub fn reset_initial_comment(&mut self) -> &mut Self
Sets initial_comment to None.
Sourcepub fn mopt_initial_comment(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_initial_comment(&mut self, value: Option<String>) -> &mut Self
Sets initial_comment to the given Option.
Sourcepub fn with_initial_comment(self, value: String) -> Self
pub fn with_initial_comment(self, value: String) -> Self
Returns self with initial_comment set to Some(value).
Sourcepub fn without_initial_comment(self) -> Self
pub fn without_initial_comment(self) -> Self
Returns self with initial_comment set to None.
Sourcepub fn opt_initial_comment(self, value: Option<String>) -> Self
pub fn opt_initial_comment(self, value: Option<String>) -> Self
Returns self with initial_comment set to the given Option.
Sourcepub fn blocks(&mut self, value: Vec<SlackBlock>) -> &mut Self
pub fn blocks(&mut self, value: Vec<SlackBlock>) -> &mut Self
Sets blocks to Some(value).
Blocks for the file share message.
Note: as of September 2026 Slack answers internal_error when this contains a
markdown block, in every request encoding, while the same block is accepted by
chat.postMessage. section and rich_text blocks work. Tracked upstream in
https://github.com/slackapi/python-slack-sdk/issues/1756
Sourcepub fn reset_blocks(&mut self) -> &mut Self
pub fn reset_blocks(&mut self) -> &mut Self
Sets blocks to None.
Blocks for the file share message.
Note: as of September 2026 Slack answers internal_error when this contains a
markdown block, in every request encoding, while the same block is accepted by
chat.postMessage. section and rich_text blocks work. Tracked upstream in
https://github.com/slackapi/python-slack-sdk/issues/1756
Sourcepub fn mopt_blocks(&mut self, value: Option<Vec<SlackBlock>>) -> &mut Self
pub fn mopt_blocks(&mut self, value: Option<Vec<SlackBlock>>) -> &mut Self
Sets blocks to the given Option.
Blocks for the file share message.
Note: as of September 2026 Slack answers internal_error when this contains a
markdown block, in every request encoding, while the same block is accepted by
chat.postMessage. section and rich_text blocks work. Tracked upstream in
https://github.com/slackapi/python-slack-sdk/issues/1756
Sourcepub fn with_blocks(self, value: Vec<SlackBlock>) -> Self
pub fn with_blocks(self, value: Vec<SlackBlock>) -> Self
Returns self with blocks set to Some(value).
Blocks for the file share message.
Note: as of September 2026 Slack answers internal_error when this contains a
markdown block, in every request encoding, while the same block is accepted by
chat.postMessage. section and rich_text blocks work. Tracked upstream in
https://github.com/slackapi/python-slack-sdk/issues/1756
Sourcepub fn without_blocks(self) -> Self
pub fn without_blocks(self) -> Self
Returns self with blocks set to None.
Blocks for the file share message.
Note: as of September 2026 Slack answers internal_error when this contains a
markdown block, in every request encoding, while the same block is accepted by
chat.postMessage. section and rich_text blocks work. Tracked upstream in
https://github.com/slackapi/python-slack-sdk/issues/1756
Sourcepub fn opt_blocks(self, value: Option<Vec<SlackBlock>>) -> Self
pub fn opt_blocks(self, value: Option<Vec<SlackBlock>>) -> Self
Returns self with blocks set to the given Option.
Blocks for the file share message.
Note: as of September 2026 Slack answers internal_error when this contains a
markdown block, in every request encoding, while the same block is accepted by
chat.postMessage. section and rich_text blocks work. Tracked upstream in
https://github.com/slackapi/python-slack-sdk/issues/1756
Sourcepub fn reset_thread_ts(&mut self) -> &mut Self
pub fn reset_thread_ts(&mut self) -> &mut Self
Sets thread_ts to None.
Sourcepub fn mopt_thread_ts(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn mopt_thread_ts(&mut self, value: Option<SlackTs>) -> &mut Self
Sets thread_ts to the given Option.
Sourcepub fn with_thread_ts(self, value: SlackTs) -> Self
pub fn with_thread_ts(self, value: SlackTs) -> Self
Returns self with thread_ts set to Some(value).
Sourcepub fn without_thread_ts(self) -> Self
pub fn without_thread_ts(self) -> Self
Returns self with thread_ts set to None.
Sourcepub fn opt_thread_ts(self, value: Option<SlackTs>) -> Self
pub fn opt_thread_ts(self, value: Option<SlackTs>) -> Self
Returns self with thread_ts set to the given Option.
Sourcepub fn reset_username(&mut self) -> &mut Self
pub fn reset_username(&mut self) -> &mut Self
Sets username to None.
Sourcepub fn mopt_username(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_username(&mut self, value: Option<String>) -> &mut Self
Sets username to the given Option.
Sourcepub fn with_username(self, value: String) -> Self
pub fn with_username(self, value: String) -> Self
Returns self with username set to Some(value).
Sourcepub fn without_username(self) -> Self
pub fn without_username(self) -> Self
Returns self with username set to None.
Sourcepub fn opt_username(self, value: Option<String>) -> Self
pub fn opt_username(self, value: Option<String>) -> Self
Returns self with username set to the given Option.
Sourcepub fn reset_icon_url(&mut self) -> &mut Self
pub fn reset_icon_url(&mut self) -> &mut Self
Sets icon_url to None.
Sourcepub fn mopt_icon_url(&mut self, value: Option<Url>) -> &mut Self
pub fn mopt_icon_url(&mut self, value: Option<Url>) -> &mut Self
Sets icon_url to the given Option.
Sourcepub fn with_icon_url(self, value: Url) -> Self
pub fn with_icon_url(self, value: Url) -> Self
Returns self with icon_url set to Some(value).
Sourcepub fn without_icon_url(self) -> Self
pub fn without_icon_url(self) -> Self
Returns self with icon_url set to None.
Sourcepub fn opt_icon_url(self, value: Option<Url>) -> Self
pub fn opt_icon_url(self, value: Option<Url>) -> Self
Returns self with icon_url set to the given Option.
Sourcepub fn icon_emoji(&mut self, value: SlackEmoji) -> &mut Self
pub fn icon_emoji(&mut self, value: SlackEmoji) -> &mut Self
Sets icon_emoji to Some(value).
Sourcepub fn reset_icon_emoji(&mut self) -> &mut Self
pub fn reset_icon_emoji(&mut self) -> &mut Self
Sets icon_emoji to None.
Sourcepub fn mopt_icon_emoji(&mut self, value: Option<SlackEmoji>) -> &mut Self
pub fn mopt_icon_emoji(&mut self, value: Option<SlackEmoji>) -> &mut Self
Sets icon_emoji to the given Option.
Sourcepub fn with_icon_emoji(self, value: SlackEmoji) -> Self
pub fn with_icon_emoji(self, value: SlackEmoji) -> Self
Returns self with icon_emoji set to Some(value).
Sourcepub fn without_icon_emoji(self) -> Self
pub fn without_icon_emoji(self) -> Self
Returns self with icon_emoji set to None.
Sourcepub fn opt_icon_emoji(self, value: Option<SlackEmoji>) -> Self
pub fn opt_icon_emoji(self, value: Option<SlackEmoji>) -> Self
Returns self with icon_emoji set to the given Option.