pub struct SlackApiFilesListRequest {
pub channel: Option<SlackChannelId>,
pub user: Option<SlackUserId>,
pub types: Option<String>,
pub count: Option<u32>,
pub page: Option<u32>,
pub ts_from: Option<i64>,
pub ts_to: Option<i64>,
pub show_files_hidden_by_limit: Option<bool>,
}Fields§
§channel: Option<SlackChannelId>§user: Option<SlackUserId>§types: Option<String>§count: Option<u32>§page: Option<u32>§ts_from: Option<i64>§ts_to: Option<i64>Implementations§
Source§impl SlackApiFilesListRequest
impl SlackApiFilesListRequest
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackApiFilesListRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn channel(&mut self, value: SlackChannelId) -> &mut Self
pub fn channel(&mut self, value: SlackChannelId) -> &mut Self
Sets channel to Some(value).
Sourcepub fn reset_channel(&mut self) -> &mut Self
pub fn reset_channel(&mut self) -> &mut Self
Sets channel to None.
Sourcepub fn mopt_channel(&mut self, value: Option<SlackChannelId>) -> &mut Self
pub fn mopt_channel(&mut self, value: Option<SlackChannelId>) -> &mut Self
Sets channel to the given Option.
Sourcepub fn with_channel(self, value: SlackChannelId) -> Self
pub fn with_channel(self, value: SlackChannelId) -> Self
Returns self with channel set to Some(value).
Sourcepub fn without_channel(self) -> Self
pub fn without_channel(self) -> Self
Returns self with channel set to None.
Sourcepub fn opt_channel(self, value: Option<SlackChannelId>) -> Self
pub fn opt_channel(self, value: Option<SlackChannelId>) -> Self
Returns self with channel set to the given Option.
Sourcepub fn user(&mut self, value: SlackUserId) -> &mut Self
pub fn user(&mut self, value: SlackUserId) -> &mut Self
Sets user to Some(value).
Sourcepub fn reset_user(&mut self) -> &mut Self
pub fn reset_user(&mut self) -> &mut Self
Sets user to None.
Sourcepub fn mopt_user(&mut self, value: Option<SlackUserId>) -> &mut Self
pub fn mopt_user(&mut self, value: Option<SlackUserId>) -> &mut Self
Sets user to the given Option.
Sourcepub fn with_user(self, value: SlackUserId) -> Self
pub fn with_user(self, value: SlackUserId) -> Self
Returns self with user set to Some(value).
Sourcepub fn without_user(self) -> Self
pub fn without_user(self) -> Self
Returns self with user set to None.
Sourcepub fn opt_user(self, value: Option<SlackUserId>) -> Self
pub fn opt_user(self, value: Option<SlackUserId>) -> Self
Returns self with user set to the given Option.
Sourcepub fn reset_types(&mut self) -> &mut Self
pub fn reset_types(&mut self) -> &mut Self
Sets types to None.
Sourcepub fn mopt_types(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_types(&mut self, value: Option<String>) -> &mut Self
Sets types to the given Option.
Sourcepub fn with_types(self, value: String) -> Self
pub fn with_types(self, value: String) -> Self
Returns self with types set to Some(value).
Sourcepub fn without_types(self) -> Self
pub fn without_types(self) -> Self
Returns self with types set to None.
Sourcepub fn opt_types(self, value: Option<String>) -> Self
pub fn opt_types(self, value: Option<String>) -> Self
Returns self with types set to the given Option.
Sourcepub fn reset_count(&mut self) -> &mut Self
pub fn reset_count(&mut self) -> &mut Self
Sets count to None.
Sourcepub fn mopt_count(&mut self, value: Option<u32>) -> &mut Self
pub fn mopt_count(&mut self, value: Option<u32>) -> &mut Self
Sets count to the given Option.
Sourcepub fn with_count(self, value: u32) -> Self
pub fn with_count(self, value: u32) -> Self
Returns self with count set to Some(value).
Sourcepub fn without_count(self) -> Self
pub fn without_count(self) -> Self
Returns self with count set to None.
Sourcepub fn opt_count(self, value: Option<u32>) -> Self
pub fn opt_count(self, value: Option<u32>) -> Self
Returns self with count set to the given Option.
Sourcepub fn reset_page(&mut self) -> &mut Self
pub fn reset_page(&mut self) -> &mut Self
Sets page to None.
Sourcepub fn without_page(self) -> Self
pub fn without_page(self) -> Self
Returns self with page set to None.
Sourcepub fn opt_page(self, value: Option<u32>) -> Self
pub fn opt_page(self, value: Option<u32>) -> Self
Returns self with page set to the given Option.
Sourcepub fn reset_ts_from(&mut self) -> &mut Self
pub fn reset_ts_from(&mut self) -> &mut Self
Sets ts_from to None.
Sourcepub fn mopt_ts_from(&mut self, value: Option<i64>) -> &mut Self
pub fn mopt_ts_from(&mut self, value: Option<i64>) -> &mut Self
Sets ts_from to the given Option.
Sourcepub fn with_ts_from(self, value: i64) -> Self
pub fn with_ts_from(self, value: i64) -> Self
Returns self with ts_from set to Some(value).
Sourcepub fn without_ts_from(self) -> Self
pub fn without_ts_from(self) -> Self
Returns self with ts_from set to None.
Sourcepub fn opt_ts_from(self, value: Option<i64>) -> Self
pub fn opt_ts_from(self, value: Option<i64>) -> Self
Returns self with ts_from set to the given Option.
Sourcepub fn reset_ts_to(&mut self) -> &mut Self
pub fn reset_ts_to(&mut self) -> &mut Self
Sets ts_to to None.
Sourcepub fn mopt_ts_to(&mut self, value: Option<i64>) -> &mut Self
pub fn mopt_ts_to(&mut self, value: Option<i64>) -> &mut Self
Sets ts_to to the given Option.
Sourcepub fn with_ts_to(self, value: i64) -> Self
pub fn with_ts_to(self, value: i64) -> Self
Returns self with ts_to set to Some(value).
Sourcepub fn without_ts_to(self) -> Self
pub fn without_ts_to(self) -> Self
Returns self with ts_to set to None.
Sourcepub fn opt_ts_to(self, value: Option<i64>) -> Self
pub fn opt_ts_to(self, value: Option<i64>) -> Self
Returns self with ts_to set to the given Option.
Sets show_files_hidden_by_limit to Some(value).
Sets show_files_hidden_by_limit to None.
Sets show_files_hidden_by_limit to the given Option.
Returns self with show_files_hidden_by_limit set to Some(value).
Returns self with show_files_hidden_by_limit set to None.
Returns self with show_files_hidden_by_limit set to the given Option.