pub struct SlackApiFilesUploadRequest {
pub channels: Option<Vec<SlackChannelId>>,
pub content: Option<String>,
pub binary_content: Option<Vec<u8>>,
pub filename: Option<String>,
pub filetype: Option<SlackFileType>,
pub initial_comment: Option<String>,
pub thread_ts: Option<SlackTs>,
pub title: Option<String>,
pub file_content_type: Option<String>,
}Fields§
§channels: Option<Vec<SlackChannelId>>§content: Option<String>§binary_content: Option<Vec<u8>>§filename: Option<String>§filetype: Option<SlackFileType>§initial_comment: Option<String>§thread_ts: Option<SlackTs>§title: Option<String>§file_content_type: Option<String>Implementations§
Source§impl SlackApiFilesUploadRequest
impl SlackApiFilesUploadRequest
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackApiFilesUploadRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
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 reset_content(&mut self) -> &mut Self
pub fn reset_content(&mut self) -> &mut Self
Sets content to None.
Sourcepub fn mopt_content(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_content(&mut self, value: Option<String>) -> &mut Self
Sets content to the given Option.
Sourcepub fn with_content(self, value: String) -> Self
pub fn with_content(self, value: String) -> Self
Returns self with content set to Some(value).
Sourcepub fn without_content(self) -> Self
pub fn without_content(self) -> Self
Returns self with content set to None.
Sourcepub fn opt_content(self, value: Option<String>) -> Self
pub fn opt_content(self, value: Option<String>) -> Self
Returns self with content set to the given Option.
Sourcepub fn binary_content(&mut self, value: Vec<u8>) -> &mut Self
pub fn binary_content(&mut self, value: Vec<u8>) -> &mut Self
Sets binary_content to Some(value).
Sourcepub fn reset_binary_content(&mut self) -> &mut Self
pub fn reset_binary_content(&mut self) -> &mut Self
Sets binary_content to None.
Sourcepub fn mopt_binary_content(&mut self, value: Option<Vec<u8>>) -> &mut Self
pub fn mopt_binary_content(&mut self, value: Option<Vec<u8>>) -> &mut Self
Sets binary_content to the given Option.
Sourcepub fn with_binary_content(self, value: Vec<u8>) -> Self
pub fn with_binary_content(self, value: Vec<u8>) -> Self
Returns self with binary_content set to Some(value).
Sourcepub fn without_binary_content(self) -> Self
pub fn without_binary_content(self) -> Self
Returns self with binary_content set to None.
Sourcepub fn opt_binary_content(self, value: Option<Vec<u8>>) -> Self
pub fn opt_binary_content(self, value: Option<Vec<u8>>) -> Self
Returns self with binary_content set to the given Option.
Sourcepub fn reset_filename(&mut self) -> &mut Self
pub fn reset_filename(&mut self) -> &mut Self
Sets filename to None.
Sourcepub fn mopt_filename(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_filename(&mut self, value: Option<String>) -> &mut Self
Sets filename to the given Option.
Sourcepub fn with_filename(self, value: String) -> Self
pub fn with_filename(self, value: String) -> Self
Returns self with filename set to Some(value).
Sourcepub fn without_filename(self) -> Self
pub fn without_filename(self) -> Self
Returns self with filename set to None.
Sourcepub fn opt_filename(self, value: Option<String>) -> Self
pub fn opt_filename(self, value: Option<String>) -> Self
Returns self with filename set to the given Option.
Sourcepub fn filetype(&mut self, value: SlackFileType) -> &mut Self
pub fn filetype(&mut self, value: SlackFileType) -> &mut Self
Sets filetype to Some(value).
Sourcepub fn reset_filetype(&mut self) -> &mut Self
pub fn reset_filetype(&mut self) -> &mut Self
Sets filetype to None.
Sourcepub fn mopt_filetype(&mut self, value: Option<SlackFileType>) -> &mut Self
pub fn mopt_filetype(&mut self, value: Option<SlackFileType>) -> &mut Self
Sets filetype to the given Option.
Sourcepub fn with_filetype(self, value: SlackFileType) -> Self
pub fn with_filetype(self, value: SlackFileType) -> Self
Returns self with filetype set to Some(value).
Sourcepub fn without_filetype(self) -> Self
pub fn without_filetype(self) -> Self
Returns self with filetype set to None.
Sourcepub fn opt_filetype(self, value: Option<SlackFileType>) -> Self
pub fn opt_filetype(self, value: Option<SlackFileType>) -> Self
Returns self with filetype 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 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_title(&mut self) -> &mut Self
pub fn reset_title(&mut self) -> &mut Self
Sets title to None.
Sourcepub fn mopt_title(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_title(&mut self, value: Option<String>) -> &mut Self
Sets title to the given Option.
Sourcepub fn with_title(self, value: String) -> Self
pub fn with_title(self, value: String) -> Self
Returns self with title set to Some(value).
Sourcepub fn without_title(self) -> Self
pub fn without_title(self) -> Self
Returns self with title set to None.
Sourcepub fn opt_title(self, value: Option<String>) -> Self
pub fn opt_title(self, value: Option<String>) -> Self
Returns self with title set to the given Option.
Sourcepub fn file_content_type(&mut self, value: String) -> &mut Self
pub fn file_content_type(&mut self, value: String) -> &mut Self
Sets file_content_type to Some(value).
Sourcepub fn reset_file_content_type(&mut self) -> &mut Self
pub fn reset_file_content_type(&mut self) -> &mut Self
Sets file_content_type to None.
Sourcepub fn mopt_file_content_type(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_file_content_type(&mut self, value: Option<String>) -> &mut Self
Sets file_content_type to the given Option.
Sourcepub fn with_file_content_type(self, value: String) -> Self
pub fn with_file_content_type(self, value: String) -> Self
Returns self with file_content_type set to Some(value).
Sourcepub fn without_file_content_type(self) -> Self
pub fn without_file_content_type(self) -> Self
Returns self with file_content_type set to None.
Sourcepub fn opt_file_content_type(self, value: Option<String>) -> Self
pub fn opt_file_content_type(self, value: Option<String>) -> Self
Returns self with file_content_type set to the given Option.