Struct slack_morphism::SlackUser
source · pub struct SlackUser {Show 13 fields
pub id: SlackUserId,
pub team_id: SlackTeamId,
pub name: Option<String>,
pub locale: Option<SlackLocale>,
pub profile: Option<SlackUserProfile>,
pub flags: SlackUserFlags,
pub tz: Option<String>,
pub tz_label: Option<String>,
pub tz_offset: Option<i32>,
pub updated: Option<SlackDateTime>,
pub deleted: Option<bool>,
pub color: Option<SlackColor>,
pub real_name: Option<String>,
}Fields§
§id: SlackUserId§team_id: SlackTeamId§name: Option<String>§locale: Option<SlackLocale>§profile: Option<SlackUserProfile>§flags: SlackUserFlags§tz: Option<String>§tz_label: Option<String>§tz_offset: Option<i32>§updated: Option<SlackDateTime>§deleted: Option<bool>§color: Option<SlackColor>§real_name: Option<String>Implementations§
source§impl SlackUser
impl SlackUser
pub fn new(id: SlackUserId, team_id: SlackTeamId, flags: SlackUserFlags) -> Self
pub fn id(&mut self, value: SlackUserId) -> &mut Self
pub fn with_id(self, value: SlackUserId) -> Self
pub fn team_id(&mut self, value: SlackTeamId) -> &mut Self
pub fn with_team_id(self, value: SlackTeamId) -> Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn reset_name(&mut self) -> &mut Self
pub fn mopt_name(&mut self, value: Option<String>) -> &mut Self
pub fn with_name(self, value: String) -> Self
pub fn without_name(self) -> Self
pub fn opt_name(self, value: Option<String>) -> Self
pub fn locale(&mut self, value: SlackLocale) -> &mut Self
pub fn reset_locale(&mut self) -> &mut Self
pub fn mopt_locale(&mut self, value: Option<SlackLocale>) -> &mut Self
pub fn with_locale(self, value: SlackLocale) -> Self
pub fn without_locale(self) -> Self
pub fn opt_locale(self, value: Option<SlackLocale>) -> Self
pub fn profile(&mut self, value: SlackUserProfile) -> &mut Self
pub fn reset_profile(&mut self) -> &mut Self
pub fn mopt_profile(&mut self, value: Option<SlackUserProfile>) -> &mut Self
pub fn with_profile(self, value: SlackUserProfile) -> Self
pub fn without_profile(self) -> Self
pub fn opt_profile(self, value: Option<SlackUserProfile>) -> Self
pub fn flags(&mut self, value: SlackUserFlags) -> &mut Self
pub fn with_flags(self, value: SlackUserFlags) -> Self
pub fn tz(&mut self, value: String) -> &mut Self
pub fn reset_tz(&mut self) -> &mut Self
pub fn mopt_tz(&mut self, value: Option<String>) -> &mut Self
pub fn with_tz(self, value: String) -> Self
pub fn without_tz(self) -> Self
pub fn opt_tz(self, value: Option<String>) -> Self
pub fn tz_label(&mut self, value: String) -> &mut Self
pub fn reset_tz_label(&mut self) -> &mut Self
pub fn mopt_tz_label(&mut self, value: Option<String>) -> &mut Self
pub fn with_tz_label(self, value: String) -> Self
pub fn without_tz_label(self) -> Self
pub fn opt_tz_label(self, value: Option<String>) -> Self
pub fn tz_offset(&mut self, value: i32) -> &mut Self
pub fn reset_tz_offset(&mut self) -> &mut Self
pub fn mopt_tz_offset(&mut self, value: Option<i32>) -> &mut Self
pub fn with_tz_offset(self, value: i32) -> Self
pub fn without_tz_offset(self) -> Self
pub fn opt_tz_offset(self, value: Option<i32>) -> Self
pub fn updated(&mut self, value: SlackDateTime) -> &mut Self
pub fn reset_updated(&mut self) -> &mut Self
pub fn mopt_updated(&mut self, value: Option<SlackDateTime>) -> &mut Self
pub fn with_updated(self, value: SlackDateTime) -> Self
pub fn without_updated(self) -> Self
pub fn opt_updated(self, value: Option<SlackDateTime>) -> Self
pub fn deleted(&mut self, value: bool) -> &mut Self
pub fn reset_deleted(&mut self) -> &mut Self
pub fn mopt_deleted(&mut self, value: Option<bool>) -> &mut Self
pub fn with_deleted(self, value: bool) -> Self
pub fn without_deleted(self) -> Self
pub fn opt_deleted(self, value: Option<bool>) -> Self
pub fn color(&mut self, value: SlackColor) -> &mut Self
pub fn reset_color(&mut self) -> &mut Self
pub fn mopt_color(&mut self, value: Option<SlackColor>) -> &mut Self
pub fn with_color(self, value: SlackColor) -> Self
pub fn without_color(self) -> Self
pub fn opt_color(self, value: Option<SlackColor>) -> Self
pub fn real_name(&mut self, value: String) -> &mut Self
pub fn reset_real_name(&mut self) -> &mut Self
pub fn mopt_real_name(&mut self, value: Option<String>) -> &mut Self
pub fn with_real_name(self, value: String) -> Self
pub fn without_real_name(self) -> Self
pub fn opt_real_name(self, value: Option<String>) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for SlackUser
impl<'de> Deserialize<'de> for SlackUser
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SlackUserInit> for SlackUser
impl From<SlackUserInit> for SlackUser
source§fn from(value: SlackUserInit) -> Self
fn from(value: SlackUserInit) -> Self
Converts to this type from the input type.