pub struct SlackApiUserGroupsUpdateRequest {
pub usergroup: SlackUserGroupId,
pub additional_channels: Option<SlackChannelId>,
pub channels: Option<SlackChannelId>,
pub description: Option<String>,
pub enable_section: Option<bool>,
pub handle: Option<String>,
pub include_count: Option<bool>,
pub name: Option<String>,
pub team_id: Option<SlackTeamId>,
}Fields§
§usergroup: SlackUserGroupId§additional_channels: Option<SlackChannelId>§channels: Option<SlackChannelId>§description: Option<String>§enable_section: Option<bool>§handle: Option<String>§include_count: Option<bool>§name: Option<String>§team_id: Option<SlackTeamId>Implementations§
Source§impl SlackApiUserGroupsUpdateRequest
impl SlackApiUserGroupsUpdateRequest
Sourcepub fn new(usergroup: SlackUserGroupId) -> Self
pub fn new(usergroup: SlackUserGroupId) -> Self
Creates a new SlackApiUserGroupsUpdateRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn usergroup(&mut self, value: SlackUserGroupId) -> &mut Self
pub fn usergroup(&mut self, value: SlackUserGroupId) -> &mut Self
Sets usergroup to value.
Sourcepub fn with_usergroup(self, value: SlackUserGroupId) -> Self
pub fn with_usergroup(self, value: SlackUserGroupId) -> Self
Returns self with usergroup set to value.
Sourcepub fn additional_channels(&mut self, value: SlackChannelId) -> &mut Self
pub fn additional_channels(&mut self, value: SlackChannelId) -> &mut Self
Sets additional_channels to Some(value).
Sourcepub fn reset_additional_channels(&mut self) -> &mut Self
pub fn reset_additional_channels(&mut self) -> &mut Self
Sets additional_channels to None.
Sourcepub fn mopt_additional_channels(
&mut self,
value: Option<SlackChannelId>,
) -> &mut Self
pub fn mopt_additional_channels( &mut self, value: Option<SlackChannelId>, ) -> &mut Self
Sets additional_channels to the given Option.
Sourcepub fn with_additional_channels(self, value: SlackChannelId) -> Self
pub fn with_additional_channels(self, value: SlackChannelId) -> Self
Returns self with additional_channels set to Some(value).
Sourcepub fn without_additional_channels(self) -> Self
pub fn without_additional_channels(self) -> Self
Returns self with additional_channels set to None.
Sourcepub fn opt_additional_channels(self, value: Option<SlackChannelId>) -> Self
pub fn opt_additional_channels(self, value: Option<SlackChannelId>) -> Self
Returns self with additional_channels set to the given Option.
Sourcepub fn channels(&mut self, value: SlackChannelId) -> &mut Self
pub fn channels(&mut self, value: 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<SlackChannelId>) -> &mut Self
pub fn mopt_channels(&mut self, value: Option<SlackChannelId>) -> &mut Self
Sets channels to the given Option.
Sourcepub fn with_channels(self, value: SlackChannelId) -> Self
pub fn with_channels(self, value: 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<SlackChannelId>) -> Self
pub fn opt_channels(self, value: Option<SlackChannelId>) -> Self
Returns self with channels set to the given Option.
Sourcepub fn description(&mut self, value: String) -> &mut Self
pub fn description(&mut self, value: String) -> &mut Self
Sets description to Some(value).
Sourcepub fn reset_description(&mut self) -> &mut Self
pub fn reset_description(&mut self) -> &mut Self
Sets description to None.
Sourcepub fn mopt_description(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_description(&mut self, value: Option<String>) -> &mut Self
Sets description to the given Option.
Sourcepub fn with_description(self, value: String) -> Self
pub fn with_description(self, value: String) -> Self
Returns self with description set to Some(value).
Sourcepub fn without_description(self) -> Self
pub fn without_description(self) -> Self
Returns self with description set to None.
Sourcepub fn opt_description(self, value: Option<String>) -> Self
pub fn opt_description(self, value: Option<String>) -> Self
Returns self with description set to the given Option.
Sourcepub fn enable_section(&mut self, value: bool) -> &mut Self
pub fn enable_section(&mut self, value: bool) -> &mut Self
Sets enable_section to Some(value).
Sourcepub fn reset_enable_section(&mut self) -> &mut Self
pub fn reset_enable_section(&mut self) -> &mut Self
Sets enable_section to None.
Sourcepub fn mopt_enable_section(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_enable_section(&mut self, value: Option<bool>) -> &mut Self
Sets enable_section to the given Option.
Sourcepub fn with_enable_section(self, value: bool) -> Self
pub fn with_enable_section(self, value: bool) -> Self
Returns self with enable_section set to Some(value).
Sourcepub fn without_enable_section(self) -> Self
pub fn without_enable_section(self) -> Self
Returns self with enable_section set to None.
Sourcepub fn opt_enable_section(self, value: Option<bool>) -> Self
pub fn opt_enable_section(self, value: Option<bool>) -> Self
Returns self with enable_section set to the given Option.
Sourcepub fn reset_handle(&mut self) -> &mut Self
pub fn reset_handle(&mut self) -> &mut Self
Sets handle to None.
Sourcepub fn mopt_handle(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_handle(&mut self, value: Option<String>) -> &mut Self
Sets handle to the given Option.
Sourcepub fn with_handle(self, value: String) -> Self
pub fn with_handle(self, value: String) -> Self
Returns self with handle set to Some(value).
Sourcepub fn without_handle(self) -> Self
pub fn without_handle(self) -> Self
Returns self with handle set to None.
Sourcepub fn opt_handle(self, value: Option<String>) -> Self
pub fn opt_handle(self, value: Option<String>) -> Self
Returns self with handle set to the given Option.
Sourcepub fn include_count(&mut self, value: bool) -> &mut Self
pub fn include_count(&mut self, value: bool) -> &mut Self
Sets include_count to Some(value).
Sourcepub fn reset_include_count(&mut self) -> &mut Self
pub fn reset_include_count(&mut self) -> &mut Self
Sets include_count to None.
Sourcepub fn mopt_include_count(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_include_count(&mut self, value: Option<bool>) -> &mut Self
Sets include_count to the given Option.
Sourcepub fn with_include_count(self, value: bool) -> Self
pub fn with_include_count(self, value: bool) -> Self
Returns self with include_count set to Some(value).
Sourcepub fn without_include_count(self) -> Self
pub fn without_include_count(self) -> Self
Returns self with include_count set to None.
Sourcepub fn opt_include_count(self, value: Option<bool>) -> Self
pub fn opt_include_count(self, value: Option<bool>) -> Self
Returns self with include_count set to the given Option.
Sourcepub fn reset_name(&mut self) -> &mut Self
pub fn reset_name(&mut self) -> &mut Self
Sets name to None.
Sourcepub fn without_name(self) -> Self
pub fn without_name(self) -> Self
Returns self with name set to None.
Sourcepub fn opt_name(self, value: Option<String>) -> Self
pub fn opt_name(self, value: Option<String>) -> Self
Returns self with name 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.