[][src]Struct slack_morphism_models::SlackUser

pub struct SlackUser {
    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<i16>,
    pub updated: Option<SlackDateTime>,
    pub deleted: Option<bool>,
    pub color: Option<SlackColor>,
    pub real_name: Option<String>,
}

Fields

id: SlackUserIdteam_id: SlackTeamIdname: Option<String>locale: Option<SlackLocale>profile: Option<SlackUserProfile>flags: SlackUserFlagstz: Option<String>tz_label: Option<String>tz_offset: Option<i16>updated: Option<SlackDateTime>deleted: Option<bool>color: Option<SlackColor>real_name: Option<String>

Implementations

impl SlackUser[src]

pub fn new(id: SlackUserId, team_id: SlackTeamId, flags: SlackUserFlags) -> Self[src]

pub fn id(&mut self, value: SlackUserId) -> &mut Self[src]

pub fn with_id(self, value: SlackUserId) -> Self[src]

pub fn team_id(&mut self, value: SlackTeamId) -> &mut Self[src]

pub fn with_team_id(self, value: SlackTeamId) -> Self[src]

pub fn name(&mut self, value: String) -> &mut Self[src]

pub fn reset_name(&mut self) -> &mut Self[src]

pub fn mopt_name(&mut self, value: Option<String>) -> &mut Self[src]

pub fn with_name(self, value: String) -> Self[src]

pub fn without_name(self) -> Self[src]

pub fn opt_name(self, value: Option<String>) -> Self[src]

pub fn locale(&mut self, value: SlackLocale) -> &mut Self[src]

pub fn reset_locale(&mut self) -> &mut Self[src]

pub fn mopt_locale(&mut self, value: Option<SlackLocale>) -> &mut Self[src]

pub fn with_locale(self, value: SlackLocale) -> Self[src]

pub fn without_locale(self) -> Self[src]

pub fn opt_locale(self, value: Option<SlackLocale>) -> Self[src]

pub fn profile(&mut self, value: SlackUserProfile) -> &mut Self[src]

pub fn reset_profile(&mut self) -> &mut Self[src]

pub fn mopt_profile(&mut self, value: Option<SlackUserProfile>) -> &mut Self[src]

pub fn with_profile(self, value: SlackUserProfile) -> Self[src]

pub fn without_profile(self) -> Self[src]

pub fn opt_profile(self, value: Option<SlackUserProfile>) -> Self[src]

pub fn flags(&mut self, value: SlackUserFlags) -> &mut Self[src]

pub fn with_flags(self, value: SlackUserFlags) -> Self[src]

pub fn tz(&mut self, value: String) -> &mut Self[src]

pub fn reset_tz(&mut self) -> &mut Self[src]

pub fn mopt_tz(&mut self, value: Option<String>) -> &mut Self[src]

pub fn with_tz(self, value: String) -> Self[src]

pub fn without_tz(self) -> Self[src]

pub fn opt_tz(self, value: Option<String>) -> Self[src]

pub fn tz_label(&mut self, value: String) -> &mut Self[src]

pub fn reset_tz_label(&mut self) -> &mut Self[src]

pub fn mopt_tz_label(&mut self, value: Option<String>) -> &mut Self[src]

pub fn with_tz_label(self, value: String) -> Self[src]

pub fn without_tz_label(self) -> Self[src]

pub fn opt_tz_label(self, value: Option<String>) -> Self[src]

pub fn tz_offset(&mut self, value: i16) -> &mut Self[src]

pub fn reset_tz_offset(&mut self) -> &mut Self[src]

pub fn mopt_tz_offset(&mut self, value: Option<i16>) -> &mut Self[src]

pub fn with_tz_offset(self, value: i16) -> Self[src]

pub fn without_tz_offset(self) -> Self[src]

pub fn opt_tz_offset(self, value: Option<i16>) -> Self[src]

pub fn updated(&mut self, value: SlackDateTime) -> &mut Self[src]

pub fn reset_updated(&mut self) -> &mut Self[src]

pub fn mopt_updated(&mut self, value: Option<SlackDateTime>) -> &mut Self[src]

pub fn with_updated(self, value: SlackDateTime) -> Self[src]

pub fn without_updated(self) -> Self[src]

pub fn opt_updated(self, value: Option<SlackDateTime>) -> Self[src]

pub fn deleted(&mut self, value: bool) -> &mut Self[src]

pub fn reset_deleted(&mut self) -> &mut Self[src]

pub fn mopt_deleted(&mut self, value: Option<bool>) -> &mut Self[src]

pub fn with_deleted(self, value: bool) -> Self[src]

pub fn without_deleted(self) -> Self[src]

pub fn opt_deleted(self, value: Option<bool>) -> Self[src]

pub fn color(&mut self, value: SlackColor) -> &mut Self[src]

pub fn reset_color(&mut self) -> &mut Self[src]

pub fn mopt_color(&mut self, value: Option<SlackColor>) -> &mut Self[src]

pub fn with_color(self, value: SlackColor) -> Self[src]

pub fn without_color(self) -> Self[src]

pub fn opt_color(self, value: Option<SlackColor>) -> Self[src]

pub fn real_name(&mut self, value: String) -> &mut Self[src]

pub fn reset_real_name(&mut self) -> &mut Self[src]

pub fn mopt_real_name(&mut self, value: Option<String>) -> &mut Self[src]

pub fn with_real_name(self, value: String) -> Self[src]

pub fn without_real_name(self) -> Self[src]

pub fn opt_real_name(self, value: Option<String>) -> Self[src]

Trait Implementations

impl Clone for SlackUser[src]

impl Debug for SlackUser[src]

impl<'de> Deserialize<'de> for SlackUser[src]

impl From<SlackUserInit> for SlackUser[src]

impl PartialEq<SlackUser> for SlackUser[src]

impl Serialize for SlackUser[src]

impl StructuralPartialEq for SlackUser[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.