pub struct SlackApiUsersListRequest {
pub cursor: Option<SlackCursorId>,
pub include_locale: Option<bool>,
pub limit: Option<u16>,
pub team_id: Option<SlackTeamId>,
}Fields§
§cursor: Option<SlackCursorId>§include_locale: Option<bool>§limit: Option<u16>§team_id: Option<SlackTeamId>Implementations§
Source§impl SlackApiUsersListRequest
impl SlackApiUsersListRequest
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackApiUsersListRequest 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 include_locale(&mut self, value: bool) -> &mut Self
pub fn include_locale(&mut self, value: bool) -> &mut Self
Sets include_locale to Some(value).
Sourcepub fn reset_include_locale(&mut self) -> &mut Self
pub fn reset_include_locale(&mut self) -> &mut Self
Sets include_locale to None.
Sourcepub fn mopt_include_locale(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_include_locale(&mut self, value: Option<bool>) -> &mut Self
Sets include_locale to the given Option.
Sourcepub fn with_include_locale(self, value: bool) -> Self
pub fn with_include_locale(self, value: bool) -> Self
Returns self with include_locale set to Some(value).
Sourcepub fn without_include_locale(self) -> Self
pub fn without_include_locale(self) -> Self
Returns self with include_locale set to None.
Sourcepub fn opt_include_locale(self, value: Option<bool>) -> Self
pub fn opt_include_locale(self, value: Option<bool>) -> Self
Returns self with include_locale 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 team_id(&mut self, value: SlackTeamId) -> &mut Self
pub fn team_id(&mut self, value: SlackTeamId) -> &mut Self
Sets team_id to Some(value).
Sourcepub fn reset_team_id(&mut self) -> &mut Self
pub fn reset_team_id(&mut self) -> &mut Self
Sets team_id to None.
Sourcepub fn mopt_team_id(&mut self, value: Option<SlackTeamId>) -> &mut Self
pub fn mopt_team_id(&mut self, value: Option<SlackTeamId>) -> &mut Self
Sets team_id to the given Option.
Sourcepub fn with_team_id(self, value: SlackTeamId) -> Self
pub fn with_team_id(self, value: SlackTeamId) -> Self
Returns self with team_id set to Some(value).
Sourcepub fn without_team_id(self) -> Self
pub fn without_team_id(self) -> Self
Returns self with team_id set to None.
Sourcepub fn opt_team_id(self, value: Option<SlackTeamId>) -> Self
pub fn opt_team_id(self, value: Option<SlackTeamId>) -> Self
Returns self with team_id set to the given Option.