pub struct SlackApiConversationsHistoryRequest {
pub channel: Option<SlackChannelId>,
pub cursor: Option<SlackCursorId>,
pub latest: Option<SlackTs>,
pub limit: Option<u16>,
pub oldest: Option<SlackTs>,
pub inclusive: Option<bool>,
pub include_all_metadata: Option<bool>,
}Fields§
§channel: Option<SlackChannelId>§cursor: Option<SlackCursorId>§latest: Option<SlackTs>§limit: Option<u16>§oldest: Option<SlackTs>§inclusive: Option<bool>§include_all_metadata: Option<bool>Implementations§
Source§impl SlackApiConversationsHistoryRequest
impl SlackApiConversationsHistoryRequest
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackApiConversationsHistoryRequest 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 cursor(&mut self, value: SlackCursorId) -> &mut Self
pub fn cursor(&mut self, value: SlackCursorId) -> &mut Self
Sets cursor to Some(value).
Sourcepub fn reset_cursor(&mut self) -> &mut Self
pub fn reset_cursor(&mut self) -> &mut Self
Sets cursor to None.
Sourcepub fn mopt_cursor(&mut self, value: Option<SlackCursorId>) -> &mut Self
pub fn mopt_cursor(&mut self, value: Option<SlackCursorId>) -> &mut Self
Sets cursor to the given Option.
Sourcepub fn with_cursor(self, value: SlackCursorId) -> Self
pub fn with_cursor(self, value: SlackCursorId) -> Self
Returns self with cursor set to Some(value).
Sourcepub fn without_cursor(self) -> Self
pub fn without_cursor(self) -> Self
Returns self with cursor set to None.
Sourcepub fn opt_cursor(self, value: Option<SlackCursorId>) -> Self
pub fn opt_cursor(self, value: Option<SlackCursorId>) -> Self
Returns self with cursor set to the given Option.
Sourcepub fn reset_latest(&mut self) -> &mut Self
pub fn reset_latest(&mut self) -> &mut Self
Sets latest to None.
Sourcepub fn mopt_latest(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn mopt_latest(&mut self, value: Option<SlackTs>) -> &mut Self
Sets latest to the given Option.
Sourcepub fn with_latest(self, value: SlackTs) -> Self
pub fn with_latest(self, value: SlackTs) -> Self
Returns self with latest set to Some(value).
Sourcepub fn without_latest(self) -> Self
pub fn without_latest(self) -> Self
Returns self with latest set to None.
Sourcepub fn opt_latest(self, value: Option<SlackTs>) -> Self
pub fn opt_latest(self, value: Option<SlackTs>) -> Self
Returns self with latest set to the given Option.
Sourcepub fn reset_limit(&mut self) -> &mut Self
pub fn reset_limit(&mut self) -> &mut Self
Sets limit to None.
Sourcepub fn mopt_limit(&mut self, value: Option<u16>) -> &mut Self
pub fn mopt_limit(&mut self, value: Option<u16>) -> &mut Self
Sets limit to the given Option.
Sourcepub fn with_limit(self, value: u16) -> Self
pub fn with_limit(self, value: u16) -> Self
Returns self with limit set to Some(value).
Sourcepub fn without_limit(self) -> Self
pub fn without_limit(self) -> Self
Returns self with limit set to None.
Sourcepub fn opt_limit(self, value: Option<u16>) -> Self
pub fn opt_limit(self, value: Option<u16>) -> Self
Returns self with limit set to the given Option.
Sourcepub fn reset_oldest(&mut self) -> &mut Self
pub fn reset_oldest(&mut self) -> &mut Self
Sets oldest to None.
Sourcepub fn mopt_oldest(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn mopt_oldest(&mut self, value: Option<SlackTs>) -> &mut Self
Sets oldest to the given Option.
Sourcepub fn with_oldest(self, value: SlackTs) -> Self
pub fn with_oldest(self, value: SlackTs) -> Self
Returns self with oldest set to Some(value).
Sourcepub fn without_oldest(self) -> Self
pub fn without_oldest(self) -> Self
Returns self with oldest set to None.
Sourcepub fn opt_oldest(self, value: Option<SlackTs>) -> Self
pub fn opt_oldest(self, value: Option<SlackTs>) -> Self
Returns self with oldest set to the given Option.
Sourcepub fn reset_inclusive(&mut self) -> &mut Self
pub fn reset_inclusive(&mut self) -> &mut Self
Sets inclusive to None.
Sourcepub fn mopt_inclusive(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_inclusive(&mut self, value: Option<bool>) -> &mut Self
Sets inclusive to the given Option.
Sourcepub fn with_inclusive(self, value: bool) -> Self
pub fn with_inclusive(self, value: bool) -> Self
Returns self with inclusive set to Some(value).
Sourcepub fn without_inclusive(self) -> Self
pub fn without_inclusive(self) -> Self
Returns self with inclusive set to None.
Sourcepub fn opt_inclusive(self, value: Option<bool>) -> Self
pub fn opt_inclusive(self, value: Option<bool>) -> Self
Returns self with inclusive set to the given Option.
Sourcepub fn include_all_metadata(&mut self, value: bool) -> &mut Self
pub fn include_all_metadata(&mut self, value: bool) -> &mut Self
Sets include_all_metadata to Some(value).
Sourcepub fn reset_include_all_metadata(&mut self) -> &mut Self
pub fn reset_include_all_metadata(&mut self) -> &mut Self
Sets include_all_metadata to None.
Sourcepub fn mopt_include_all_metadata(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_include_all_metadata(&mut self, value: Option<bool>) -> &mut Self
Sets include_all_metadata to the given Option.
Sourcepub fn with_include_all_metadata(self, value: bool) -> Self
pub fn with_include_all_metadata(self, value: bool) -> Self
Returns self with include_all_metadata set to Some(value).
Sourcepub fn without_include_all_metadata(self) -> Self
pub fn without_include_all_metadata(self) -> Self
Returns self with include_all_metadata set to None.
Sourcepub fn opt_include_all_metadata(self, value: Option<bool>) -> Self
pub fn opt_include_all_metadata(self, value: Option<bool>) -> Self
Returns self with include_all_metadata set to the given Option.