pub struct SlackEnterpriseUser {
pub id: SlackUserId,
pub enterprise_id: SlackEnterpriseId,
pub enterprise_name: Option<String>,
pub flags: SlackUserFlags,
pub teams: Option<Vec<SlackTeamId>>,
}Fields§
§id: SlackUserId§enterprise_id: SlackEnterpriseId§enterprise_name: Option<String>§flags: SlackUserFlags§teams: Option<Vec<SlackTeamId>>Implementations§
Source§impl SlackEnterpriseUser
impl SlackEnterpriseUser
Sourcepub fn new(
id: SlackUserId,
enterprise_id: SlackEnterpriseId,
flags: SlackUserFlags,
) -> Self
pub fn new( id: SlackUserId, enterprise_id: SlackEnterpriseId, flags: SlackUserFlags, ) -> Self
Creates a new SlackEnterpriseUser from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn id(&mut self, value: SlackUserId) -> &mut Self
pub fn id(&mut self, value: SlackUserId) -> &mut Self
Sets id to value.
Sourcepub fn with_id(self, value: SlackUserId) -> Self
pub fn with_id(self, value: SlackUserId) -> Self
Returns self with id set to value.
Sourcepub fn enterprise_id(&mut self, value: SlackEnterpriseId) -> &mut Self
pub fn enterprise_id(&mut self, value: SlackEnterpriseId) -> &mut Self
Sets enterprise_id to value.
Sourcepub fn with_enterprise_id(self, value: SlackEnterpriseId) -> Self
pub fn with_enterprise_id(self, value: SlackEnterpriseId) -> Self
Returns self with enterprise_id set to value.
Sourcepub fn enterprise_name(&mut self, value: String) -> &mut Self
pub fn enterprise_name(&mut self, value: String) -> &mut Self
Sets enterprise_name to Some(value).
Sourcepub fn reset_enterprise_name(&mut self) -> &mut Self
pub fn reset_enterprise_name(&mut self) -> &mut Self
Sets enterprise_name to None.
Sourcepub fn mopt_enterprise_name(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_enterprise_name(&mut self, value: Option<String>) -> &mut Self
Sets enterprise_name to the given Option.
Sourcepub fn with_enterprise_name(self, value: String) -> Self
pub fn with_enterprise_name(self, value: String) -> Self
Returns self with enterprise_name set to Some(value).
Sourcepub fn without_enterprise_name(self) -> Self
pub fn without_enterprise_name(self) -> Self
Returns self with enterprise_name set to None.
Sourcepub fn opt_enterprise_name(self, value: Option<String>) -> Self
pub fn opt_enterprise_name(self, value: Option<String>) -> Self
Returns self with enterprise_name set to the given Option.
Sourcepub fn flags(&mut self, value: SlackUserFlags) -> &mut Self
pub fn flags(&mut self, value: SlackUserFlags) -> &mut Self
Sets flags to value.
Sourcepub fn with_flags(self, value: SlackUserFlags) -> Self
pub fn with_flags(self, value: SlackUserFlags) -> Self
Returns self with flags set to value.
Sourcepub fn teams(&mut self, value: Vec<SlackTeamId>) -> &mut Self
pub fn teams(&mut self, value: Vec<SlackTeamId>) -> &mut Self
Sets teams to Some(value).
Sourcepub fn reset_teams(&mut self) -> &mut Self
pub fn reset_teams(&mut self) -> &mut Self
Sets teams to None.
Sourcepub fn mopt_teams(&mut self, value: Option<Vec<SlackTeamId>>) -> &mut Self
pub fn mopt_teams(&mut self, value: Option<Vec<SlackTeamId>>) -> &mut Self
Sets teams to the given Option.
Sourcepub fn with_teams(self, value: Vec<SlackTeamId>) -> Self
pub fn with_teams(self, value: Vec<SlackTeamId>) -> Self
Returns self with teams set to Some(value).
Sourcepub fn without_teams(self) -> Self
pub fn without_teams(self) -> Self
Returns self with teams set to None.
Sourcepub fn opt_teams(self, value: Option<Vec<SlackTeamId>>) -> Self
pub fn opt_teams(self, value: Option<Vec<SlackTeamId>>) -> Self
Returns self with teams set to the given Option.