pub struct SlackUserProfile {Show 21 fields
pub id: Option<SlackUserId>,
pub display_name: Option<String>,
pub real_name: Option<String>,
pub real_name_normalized: Option<String>,
pub avatar_hash: Option<SlackAvatarHash>,
pub status_text: Option<String>,
pub status_expiration: Option<SlackDateTime>,
pub status_emoji: Option<SlackEmoji>,
pub huddle_state: Option<SlackHuddleState>,
pub huddle_state_expiration_ts: Option<SlackDateTime>,
pub display_name_normalized: Option<String>,
pub email: Option<EmailAddress>,
pub icon: Option<SlackIcon>,
pub team: Option<SlackTeamId>,
pub start_date: Option<SlackDate>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub phone: Option<PhoneNumber>,
pub pronouns: Option<String>,
pub title: Option<String>,
pub fields: Option<HashMap<SlackUserProfileFieldId, SlackUserProfileFieldValue>>,
}Fields§
§id: Option<SlackUserId>§display_name: Option<String>§real_name: Option<String>§real_name_normalized: Option<String>§avatar_hash: Option<SlackAvatarHash>§status_text: Option<String>§status_expiration: Option<SlackDateTime>§status_emoji: Option<SlackEmoji>§huddle_state: Option<SlackHuddleState>§huddle_state_expiration_ts: Option<SlackDateTime>§display_name_normalized: Option<String>§email: Option<EmailAddress>§icon: Option<SlackIcon>§team: Option<SlackTeamId>§start_date: Option<SlackDate>§first_name: Option<String>§last_name: Option<String>§phone: Option<PhoneNumber>§pronouns: Option<String>§title: Option<String>§fields: Option<HashMap<SlackUserProfileFieldId, SlackUserProfileFieldValue>>Implementations§
Source§impl SlackUserProfile
impl SlackUserProfile
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackUserProfile 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 Some(value).
Sourcepub fn mopt_id(&mut self, value: Option<SlackUserId>) -> &mut Self
pub fn mopt_id(&mut self, value: Option<SlackUserId>) -> &mut Self
Sets id to the given Option.
Sourcepub fn with_id(self, value: SlackUserId) -> Self
pub fn with_id(self, value: SlackUserId) -> Self
Returns self with id set to Some(value).
Sourcepub fn without_id(self) -> Self
pub fn without_id(self) -> Self
Returns self with id set to None.
Sourcepub fn opt_id(self, value: Option<SlackUserId>) -> Self
pub fn opt_id(self, value: Option<SlackUserId>) -> Self
Returns self with id set to the given Option.
Sourcepub fn display_name(&mut self, value: String) -> &mut Self
pub fn display_name(&mut self, value: String) -> &mut Self
Sets display_name to Some(value).
Sourcepub fn reset_display_name(&mut self) -> &mut Self
pub fn reset_display_name(&mut self) -> &mut Self
Sets display_name to None.
Sourcepub fn mopt_display_name(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_display_name(&mut self, value: Option<String>) -> &mut Self
Sets display_name to the given Option.
Sourcepub fn with_display_name(self, value: String) -> Self
pub fn with_display_name(self, value: String) -> Self
Returns self with display_name set to Some(value).
Sourcepub fn without_display_name(self) -> Self
pub fn without_display_name(self) -> Self
Returns self with display_name set to None.
Sourcepub fn opt_display_name(self, value: Option<String>) -> Self
pub fn opt_display_name(self, value: Option<String>) -> Self
Returns self with display_name set to the given Option.
Sourcepub fn reset_real_name(&mut self) -> &mut Self
pub fn reset_real_name(&mut self) -> &mut Self
Sets real_name to None.
Sourcepub fn mopt_real_name(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_real_name(&mut self, value: Option<String>) -> &mut Self
Sets real_name to the given Option.
Sourcepub fn with_real_name(self, value: String) -> Self
pub fn with_real_name(self, value: String) -> Self
Returns self with real_name set to Some(value).
Sourcepub fn without_real_name(self) -> Self
pub fn without_real_name(self) -> Self
Returns self with real_name set to None.
Sourcepub fn opt_real_name(self, value: Option<String>) -> Self
pub fn opt_real_name(self, value: Option<String>) -> Self
Returns self with real_name set to the given Option.
Sourcepub fn real_name_normalized(&mut self, value: String) -> &mut Self
pub fn real_name_normalized(&mut self, value: String) -> &mut Self
Sets real_name_normalized to Some(value).
Sourcepub fn reset_real_name_normalized(&mut self) -> &mut Self
pub fn reset_real_name_normalized(&mut self) -> &mut Self
Sets real_name_normalized to None.
Sourcepub fn mopt_real_name_normalized(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_real_name_normalized(&mut self, value: Option<String>) -> &mut Self
Sets real_name_normalized to the given Option.
Sourcepub fn with_real_name_normalized(self, value: String) -> Self
pub fn with_real_name_normalized(self, value: String) -> Self
Returns self with real_name_normalized set to Some(value).
Sourcepub fn without_real_name_normalized(self) -> Self
pub fn without_real_name_normalized(self) -> Self
Returns self with real_name_normalized set to None.
Sourcepub fn opt_real_name_normalized(self, value: Option<String>) -> Self
pub fn opt_real_name_normalized(self, value: Option<String>) -> Self
Returns self with real_name_normalized set to the given Option.
Sourcepub fn avatar_hash(&mut self, value: SlackAvatarHash) -> &mut Self
pub fn avatar_hash(&mut self, value: SlackAvatarHash) -> &mut Self
Sets avatar_hash to Some(value).
Sourcepub fn reset_avatar_hash(&mut self) -> &mut Self
pub fn reset_avatar_hash(&mut self) -> &mut Self
Sets avatar_hash to None.
Sourcepub fn mopt_avatar_hash(&mut self, value: Option<SlackAvatarHash>) -> &mut Self
pub fn mopt_avatar_hash(&mut self, value: Option<SlackAvatarHash>) -> &mut Self
Sets avatar_hash to the given Option.
Sourcepub fn with_avatar_hash(self, value: SlackAvatarHash) -> Self
pub fn with_avatar_hash(self, value: SlackAvatarHash) -> Self
Returns self with avatar_hash set to Some(value).
Sourcepub fn without_avatar_hash(self) -> Self
pub fn without_avatar_hash(self) -> Self
Returns self with avatar_hash set to None.
Sourcepub fn opt_avatar_hash(self, value: Option<SlackAvatarHash>) -> Self
pub fn opt_avatar_hash(self, value: Option<SlackAvatarHash>) -> Self
Returns self with avatar_hash set to the given Option.
Sourcepub fn status_text(&mut self, value: String) -> &mut Self
pub fn status_text(&mut self, value: String) -> &mut Self
Sets status_text to Some(value).
Sourcepub fn reset_status_text(&mut self) -> &mut Self
pub fn reset_status_text(&mut self) -> &mut Self
Sets status_text to None.
Sourcepub fn mopt_status_text(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_status_text(&mut self, value: Option<String>) -> &mut Self
Sets status_text to the given Option.
Sourcepub fn with_status_text(self, value: String) -> Self
pub fn with_status_text(self, value: String) -> Self
Returns self with status_text set to Some(value).
Sourcepub fn without_status_text(self) -> Self
pub fn without_status_text(self) -> Self
Returns self with status_text set to None.
Sourcepub fn opt_status_text(self, value: Option<String>) -> Self
pub fn opt_status_text(self, value: Option<String>) -> Self
Returns self with status_text set to the given Option.
Sourcepub fn status_expiration(&mut self, value: SlackDateTime) -> &mut Self
pub fn status_expiration(&mut self, value: SlackDateTime) -> &mut Self
Sets status_expiration to Some(value).
Sourcepub fn reset_status_expiration(&mut self) -> &mut Self
pub fn reset_status_expiration(&mut self) -> &mut Self
Sets status_expiration to None.
Sourcepub fn mopt_status_expiration(
&mut self,
value: Option<SlackDateTime>,
) -> &mut Self
pub fn mopt_status_expiration( &mut self, value: Option<SlackDateTime>, ) -> &mut Self
Sets status_expiration to the given Option.
Sourcepub fn with_status_expiration(self, value: SlackDateTime) -> Self
pub fn with_status_expiration(self, value: SlackDateTime) -> Self
Returns self with status_expiration set to Some(value).
Sourcepub fn without_status_expiration(self) -> Self
pub fn without_status_expiration(self) -> Self
Returns self with status_expiration set to None.
Sourcepub fn opt_status_expiration(self, value: Option<SlackDateTime>) -> Self
pub fn opt_status_expiration(self, value: Option<SlackDateTime>) -> Self
Returns self with status_expiration set to the given Option.
Sourcepub fn status_emoji(&mut self, value: SlackEmoji) -> &mut Self
pub fn status_emoji(&mut self, value: SlackEmoji) -> &mut Self
Sets status_emoji to Some(value).
Sourcepub fn reset_status_emoji(&mut self) -> &mut Self
pub fn reset_status_emoji(&mut self) -> &mut Self
Sets status_emoji to None.
Sourcepub fn mopt_status_emoji(&mut self, value: Option<SlackEmoji>) -> &mut Self
pub fn mopt_status_emoji(&mut self, value: Option<SlackEmoji>) -> &mut Self
Sets status_emoji to the given Option.
Sourcepub fn with_status_emoji(self, value: SlackEmoji) -> Self
pub fn with_status_emoji(self, value: SlackEmoji) -> Self
Returns self with status_emoji set to Some(value).
Sourcepub fn without_status_emoji(self) -> Self
pub fn without_status_emoji(self) -> Self
Returns self with status_emoji set to None.
Sourcepub fn opt_status_emoji(self, value: Option<SlackEmoji>) -> Self
pub fn opt_status_emoji(self, value: Option<SlackEmoji>) -> Self
Returns self with status_emoji set to the given Option.
Sourcepub fn huddle_state(&mut self, value: SlackHuddleState) -> &mut Self
pub fn huddle_state(&mut self, value: SlackHuddleState) -> &mut Self
Sets huddle_state to Some(value).
Sourcepub fn reset_huddle_state(&mut self) -> &mut Self
pub fn reset_huddle_state(&mut self) -> &mut Self
Sets huddle_state to None.
Sourcepub fn mopt_huddle_state(
&mut self,
value: Option<SlackHuddleState>,
) -> &mut Self
pub fn mopt_huddle_state( &mut self, value: Option<SlackHuddleState>, ) -> &mut Self
Sets huddle_state to the given Option.
Sourcepub fn with_huddle_state(self, value: SlackHuddleState) -> Self
pub fn with_huddle_state(self, value: SlackHuddleState) -> Self
Returns self with huddle_state set to Some(value).
Sourcepub fn without_huddle_state(self) -> Self
pub fn without_huddle_state(self) -> Self
Returns self with huddle_state set to None.
Sourcepub fn opt_huddle_state(self, value: Option<SlackHuddleState>) -> Self
pub fn opt_huddle_state(self, value: Option<SlackHuddleState>) -> Self
Returns self with huddle_state set to the given Option.
Sourcepub fn huddle_state_expiration_ts(&mut self, value: SlackDateTime) -> &mut Self
pub fn huddle_state_expiration_ts(&mut self, value: SlackDateTime) -> &mut Self
Sets huddle_state_expiration_ts to Some(value).
Sourcepub fn reset_huddle_state_expiration_ts(&mut self) -> &mut Self
pub fn reset_huddle_state_expiration_ts(&mut self) -> &mut Self
Sets huddle_state_expiration_ts to None.
Sourcepub fn mopt_huddle_state_expiration_ts(
&mut self,
value: Option<SlackDateTime>,
) -> &mut Self
pub fn mopt_huddle_state_expiration_ts( &mut self, value: Option<SlackDateTime>, ) -> &mut Self
Sets huddle_state_expiration_ts to the given Option.
Sourcepub fn with_huddle_state_expiration_ts(self, value: SlackDateTime) -> Self
pub fn with_huddle_state_expiration_ts(self, value: SlackDateTime) -> Self
Returns self with huddle_state_expiration_ts set to Some(value).
Sourcepub fn without_huddle_state_expiration_ts(self) -> Self
pub fn without_huddle_state_expiration_ts(self) -> Self
Returns self with huddle_state_expiration_ts set to None.
Sourcepub fn opt_huddle_state_expiration_ts(
self,
value: Option<SlackDateTime>,
) -> Self
pub fn opt_huddle_state_expiration_ts( self, value: Option<SlackDateTime>, ) -> Self
Returns self with huddle_state_expiration_ts set to the given Option.
Sourcepub fn display_name_normalized(&mut self, value: String) -> &mut Self
pub fn display_name_normalized(&mut self, value: String) -> &mut Self
Sets display_name_normalized to Some(value).
Sourcepub fn reset_display_name_normalized(&mut self) -> &mut Self
pub fn reset_display_name_normalized(&mut self) -> &mut Self
Sets display_name_normalized to None.
Sourcepub fn mopt_display_name_normalized(
&mut self,
value: Option<String>,
) -> &mut Self
pub fn mopt_display_name_normalized( &mut self, value: Option<String>, ) -> &mut Self
Sets display_name_normalized to the given Option.
Sourcepub fn with_display_name_normalized(self, value: String) -> Self
pub fn with_display_name_normalized(self, value: String) -> Self
Returns self with display_name_normalized set to Some(value).
Sourcepub fn without_display_name_normalized(self) -> Self
pub fn without_display_name_normalized(self) -> Self
Returns self with display_name_normalized set to None.
Sourcepub fn opt_display_name_normalized(self, value: Option<String>) -> Self
pub fn opt_display_name_normalized(self, value: Option<String>) -> Self
Returns self with display_name_normalized set to the given Option.
Sourcepub fn email(&mut self, value: EmailAddress) -> &mut Self
pub fn email(&mut self, value: EmailAddress) -> &mut Self
Sets email to Some(value).
Sourcepub fn reset_email(&mut self) -> &mut Self
pub fn reset_email(&mut self) -> &mut Self
Sets email to None.
Sourcepub fn mopt_email(&mut self, value: Option<EmailAddress>) -> &mut Self
pub fn mopt_email(&mut self, value: Option<EmailAddress>) -> &mut Self
Sets email to the given Option.
Sourcepub fn with_email(self, value: EmailAddress) -> Self
pub fn with_email(self, value: EmailAddress) -> Self
Returns self with email set to Some(value).
Sourcepub fn without_email(self) -> Self
pub fn without_email(self) -> Self
Returns self with email set to None.
Sourcepub fn opt_email(self, value: Option<EmailAddress>) -> Self
pub fn opt_email(self, value: Option<EmailAddress>) -> Self
Returns self with email set to the given Option.
Sourcepub fn reset_icon(&mut self) -> &mut Self
pub fn reset_icon(&mut self) -> &mut Self
Sets icon to None.
Sourcepub fn mopt_icon(&mut self, value: Option<SlackIcon>) -> &mut Self
pub fn mopt_icon(&mut self, value: Option<SlackIcon>) -> &mut Self
Sets icon to the given Option.
Sourcepub fn without_icon(self) -> Self
pub fn without_icon(self) -> Self
Returns self with icon set to None.
Sourcepub fn opt_icon(self, value: Option<SlackIcon>) -> Self
pub fn opt_icon(self, value: Option<SlackIcon>) -> Self
Returns self with icon set to the given Option.
Sourcepub fn team(&mut self, value: SlackTeamId) -> &mut Self
pub fn team(&mut self, value: SlackTeamId) -> &mut Self
Sets team to Some(value).
Sourcepub fn reset_team(&mut self) -> &mut Self
pub fn reset_team(&mut self) -> &mut Self
Sets team to None.
Sourcepub fn mopt_team(&mut self, value: Option<SlackTeamId>) -> &mut Self
pub fn mopt_team(&mut self, value: Option<SlackTeamId>) -> &mut Self
Sets team to the given Option.
Sourcepub fn with_team(self, value: SlackTeamId) -> Self
pub fn with_team(self, value: SlackTeamId) -> Self
Returns self with team set to Some(value).
Sourcepub fn without_team(self) -> Self
pub fn without_team(self) -> Self
Returns self with team set to None.
Sourcepub fn opt_team(self, value: Option<SlackTeamId>) -> Self
pub fn opt_team(self, value: Option<SlackTeamId>) -> Self
Returns self with team set to the given Option.
Sourcepub fn start_date(&mut self, value: SlackDate) -> &mut Self
pub fn start_date(&mut self, value: SlackDate) -> &mut Self
Sets start_date to Some(value).
Sourcepub fn reset_start_date(&mut self) -> &mut Self
pub fn reset_start_date(&mut self) -> &mut Self
Sets start_date to None.
Sourcepub fn mopt_start_date(&mut self, value: Option<SlackDate>) -> &mut Self
pub fn mopt_start_date(&mut self, value: Option<SlackDate>) -> &mut Self
Sets start_date to the given Option.
Sourcepub fn with_start_date(self, value: SlackDate) -> Self
pub fn with_start_date(self, value: SlackDate) -> Self
Returns self with start_date set to Some(value).
Sourcepub fn without_start_date(self) -> Self
pub fn without_start_date(self) -> Self
Returns self with start_date set to None.
Sourcepub fn opt_start_date(self, value: Option<SlackDate>) -> Self
pub fn opt_start_date(self, value: Option<SlackDate>) -> Self
Returns self with start_date set to the given Option.
Sourcepub fn first_name(&mut self, value: String) -> &mut Self
pub fn first_name(&mut self, value: String) -> &mut Self
Sets first_name to Some(value).
Sourcepub fn reset_first_name(&mut self) -> &mut Self
pub fn reset_first_name(&mut self) -> &mut Self
Sets first_name to None.
Sourcepub fn mopt_first_name(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_first_name(&mut self, value: Option<String>) -> &mut Self
Sets first_name to the given Option.
Sourcepub fn with_first_name(self, value: String) -> Self
pub fn with_first_name(self, value: String) -> Self
Returns self with first_name set to Some(value).
Sourcepub fn without_first_name(self) -> Self
pub fn without_first_name(self) -> Self
Returns self with first_name set to None.
Sourcepub fn opt_first_name(self, value: Option<String>) -> Self
pub fn opt_first_name(self, value: Option<String>) -> Self
Returns self with first_name set to the given Option.
Sourcepub fn reset_last_name(&mut self) -> &mut Self
pub fn reset_last_name(&mut self) -> &mut Self
Sets last_name to None.
Sourcepub fn mopt_last_name(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_last_name(&mut self, value: Option<String>) -> &mut Self
Sets last_name to the given Option.
Sourcepub fn with_last_name(self, value: String) -> Self
pub fn with_last_name(self, value: String) -> Self
Returns self with last_name set to Some(value).
Sourcepub fn without_last_name(self) -> Self
pub fn without_last_name(self) -> Self
Returns self with last_name set to None.
Sourcepub fn opt_last_name(self, value: Option<String>) -> Self
pub fn opt_last_name(self, value: Option<String>) -> Self
Returns self with last_name set to the given Option.
Sourcepub fn phone(&mut self, value: PhoneNumber) -> &mut Self
pub fn phone(&mut self, value: PhoneNumber) -> &mut Self
Sets phone to Some(value).
Sourcepub fn reset_phone(&mut self) -> &mut Self
pub fn reset_phone(&mut self) -> &mut Self
Sets phone to None.
Sourcepub fn mopt_phone(&mut self, value: Option<PhoneNumber>) -> &mut Self
pub fn mopt_phone(&mut self, value: Option<PhoneNumber>) -> &mut Self
Sets phone to the given Option.
Sourcepub fn with_phone(self, value: PhoneNumber) -> Self
pub fn with_phone(self, value: PhoneNumber) -> Self
Returns self with phone set to Some(value).
Sourcepub fn without_phone(self) -> Self
pub fn without_phone(self) -> Self
Returns self with phone set to None.
Sourcepub fn opt_phone(self, value: Option<PhoneNumber>) -> Self
pub fn opt_phone(self, value: Option<PhoneNumber>) -> Self
Returns self with phone set to the given Option.
Sourcepub fn reset_pronouns(&mut self) -> &mut Self
pub fn reset_pronouns(&mut self) -> &mut Self
Sets pronouns to None.
Sourcepub fn mopt_pronouns(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_pronouns(&mut self, value: Option<String>) -> &mut Self
Sets pronouns to the given Option.
Sourcepub fn with_pronouns(self, value: String) -> Self
pub fn with_pronouns(self, value: String) -> Self
Returns self with pronouns set to Some(value).
Sourcepub fn without_pronouns(self) -> Self
pub fn without_pronouns(self) -> Self
Returns self with pronouns set to None.
Sourcepub fn opt_pronouns(self, value: Option<String>) -> Self
pub fn opt_pronouns(self, value: Option<String>) -> Self
Returns self with pronouns set to the given Option.
Sourcepub fn reset_title(&mut self) -> &mut Self
pub fn reset_title(&mut self) -> &mut Self
Sets title to None.
Sourcepub fn mopt_title(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_title(&mut self, value: Option<String>) -> &mut Self
Sets title to the given Option.
Sourcepub fn with_title(self, value: String) -> Self
pub fn with_title(self, value: String) -> Self
Returns self with title set to Some(value).
Sourcepub fn without_title(self) -> Self
pub fn without_title(self) -> Self
Returns self with title set to None.
Sourcepub fn opt_title(self, value: Option<String>) -> Self
pub fn opt_title(self, value: Option<String>) -> Self
Returns self with title set to the given Option.
Sourcepub fn fields(
&mut self,
value: HashMap<SlackUserProfileFieldId, SlackUserProfileFieldValue>,
) -> &mut Self
pub fn fields( &mut self, value: HashMap<SlackUserProfileFieldId, SlackUserProfileFieldValue>, ) -> &mut Self
Sets fields to Some(value).
Sourcepub fn reset_fields(&mut self) -> &mut Self
pub fn reset_fields(&mut self) -> &mut Self
Sets fields to None.
Sourcepub fn mopt_fields(
&mut self,
value: Option<HashMap<SlackUserProfileFieldId, SlackUserProfileFieldValue>>,
) -> &mut Self
pub fn mopt_fields( &mut self, value: Option<HashMap<SlackUserProfileFieldId, SlackUserProfileFieldValue>>, ) -> &mut Self
Sets fields to the given Option.
Sourcepub fn with_fields(
self,
value: HashMap<SlackUserProfileFieldId, SlackUserProfileFieldValue>,
) -> Self
pub fn with_fields( self, value: HashMap<SlackUserProfileFieldId, SlackUserProfileFieldValue>, ) -> Self
Returns self with fields set to Some(value).
Sourcepub fn without_fields(self) -> Self
pub fn without_fields(self) -> Self
Returns self with fields set to None.
Sourcepub fn opt_fields(
self,
value: Option<HashMap<SlackUserProfileFieldId, SlackUserProfileFieldValue>>,
) -> Self
pub fn opt_fields( self, value: Option<HashMap<SlackUserProfileFieldId, SlackUserProfileFieldValue>>, ) -> Self
Returns self with fields set to the given Option.