pub struct SlackApiUsersConversationsRequest {
pub cursor: Option<SlackCursorId>,
pub limit: Option<u16>,
pub exclude_archived: Option<bool>,
pub types: Option<Vec<SlackConversationType>>,
pub user: Option<SlackUserId>,
}Fields§
§cursor: Option<SlackCursorId>§limit: Option<u16>§exclude_archived: Option<bool>§types: Option<Vec<SlackConversationType>>§user: Option<SlackUserId>Implementations§
Source§impl SlackApiUsersConversationsRequest
impl SlackApiUsersConversationsRequest
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackApiUsersConversationsRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
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_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 exclude_archived(&mut self, value: bool) -> &mut Self
pub fn exclude_archived(&mut self, value: bool) -> &mut Self
Sets exclude_archived to Some(value).
Sourcepub fn reset_exclude_archived(&mut self) -> &mut Self
pub fn reset_exclude_archived(&mut self) -> &mut Self
Sets exclude_archived to None.
Sourcepub fn mopt_exclude_archived(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_exclude_archived(&mut self, value: Option<bool>) -> &mut Self
Sets exclude_archived to the given Option.
Sourcepub fn with_exclude_archived(self, value: bool) -> Self
pub fn with_exclude_archived(self, value: bool) -> Self
Returns self with exclude_archived set to Some(value).
Sourcepub fn without_exclude_archived(self) -> Self
pub fn without_exclude_archived(self) -> Self
Returns self with exclude_archived set to None.
Sourcepub fn opt_exclude_archived(self, value: Option<bool>) -> Self
pub fn opt_exclude_archived(self, value: Option<bool>) -> Self
Returns self with exclude_archived set to the given Option.
Sourcepub fn types(&mut self, value: Vec<SlackConversationType>) -> &mut Self
pub fn types(&mut self, value: Vec<SlackConversationType>) -> &mut Self
Sets types to Some(value).
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<Vec<SlackConversationType>>,
) -> &mut Self
pub fn mopt_types( &mut self, value: Option<Vec<SlackConversationType>>, ) -> &mut Self
Sets types to the given Option.
Sourcepub fn with_types(self, value: Vec<SlackConversationType>) -> Self
pub fn with_types(self, value: Vec<SlackConversationType>) -> 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<Vec<SlackConversationType>>) -> Self
pub fn opt_types(self, value: Option<Vec<SlackConversationType>>) -> Self
Returns self with types 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.