Struct slack_morphism::prelude::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: SlackUserIdteam_id: SlackTeamIdname: Option<String>locale: Option<SlackLocale>profile: Option<SlackUserProfile>flags: SlackUserFlagstz: Option<String>tz_label: Option<String>tz_offset: Option<i32>updated: Option<SlackDateTime>deleted: Option<bool>color: Option<SlackColor>real_name: Option<String>Implementations
sourceimpl SlackUser
impl SlackUser
pub fn new(
id: SlackUserId,
team_id: SlackTeamId,
flags: SlackUserFlags
) -> SlackUser
pub fn id(&mut self, value: SlackUserId) -> &mut SlackUser
pub fn with_id(self, value: SlackUserId) -> SlackUser
pub fn team_id(&mut self, value: SlackTeamId) -> &mut SlackUser
pub fn with_team_id(self, value: SlackTeamId) -> SlackUser
pub fn name(&mut self, value: String) -> &mut SlackUser
pub fn reset_name(&mut self) -> &mut SlackUser
pub fn mopt_name(&mut self, value: Option<String>) -> &mut SlackUser
pub fn with_name(self, value: String) -> SlackUser
pub fn without_name(self) -> SlackUser
pub fn opt_name(self, value: Option<String>) -> SlackUser
pub fn locale(&mut self, value: SlackLocale) -> &mut SlackUser
pub fn reset_locale(&mut self) -> &mut SlackUser
pub fn mopt_locale(&mut self, value: Option<SlackLocale>) -> &mut SlackUser
pub fn with_locale(self, value: SlackLocale) -> SlackUser
pub fn without_locale(self) -> SlackUser
pub fn opt_locale(self, value: Option<SlackLocale>) -> SlackUser
pub fn profile(&mut self, value: SlackUserProfile) -> &mut SlackUser
pub fn reset_profile(&mut self) -> &mut SlackUser
pub fn mopt_profile(
&mut self,
value: Option<SlackUserProfile>
) -> &mut SlackUser
pub fn with_profile(self, value: SlackUserProfile) -> SlackUser
pub fn without_profile(self) -> SlackUser
pub fn opt_profile(self, value: Option<SlackUserProfile>) -> SlackUser
pub fn flags(&mut self, value: SlackUserFlags) -> &mut SlackUser
pub fn with_flags(self, value: SlackUserFlags) -> SlackUser
pub fn tz(&mut self, value: String) -> &mut SlackUser
pub fn reset_tz(&mut self) -> &mut SlackUser
pub fn mopt_tz(&mut self, value: Option<String>) -> &mut SlackUser
pub fn with_tz(self, value: String) -> SlackUser
pub fn without_tz(self) -> SlackUser
pub fn opt_tz(self, value: Option<String>) -> SlackUser
pub fn tz_label(&mut self, value: String) -> &mut SlackUser
pub fn reset_tz_label(&mut self) -> &mut SlackUser
pub fn mopt_tz_label(&mut self, value: Option<String>) -> &mut SlackUser
pub fn with_tz_label(self, value: String) -> SlackUser
pub fn without_tz_label(self) -> SlackUser
pub fn opt_tz_label(self, value: Option<String>) -> SlackUser
pub fn tz_offset(&mut self, value: i32) -> &mut SlackUser
pub fn reset_tz_offset(&mut self) -> &mut SlackUser
pub fn mopt_tz_offset(&mut self, value: Option<i32>) -> &mut SlackUser
pub fn with_tz_offset(self, value: i32) -> SlackUser
pub fn without_tz_offset(self) -> SlackUser
pub fn opt_tz_offset(self, value: Option<i32>) -> SlackUser
pub fn updated(&mut self, value: SlackDateTime) -> &mut SlackUser
pub fn reset_updated(&mut self) -> &mut SlackUser
pub fn mopt_updated(&mut self, value: Option<SlackDateTime>) -> &mut SlackUser
pub fn with_updated(self, value: SlackDateTime) -> SlackUser
pub fn without_updated(self) -> SlackUser
pub fn opt_updated(self, value: Option<SlackDateTime>) -> SlackUser
pub fn deleted(&mut self, value: bool) -> &mut SlackUser
pub fn reset_deleted(&mut self) -> &mut SlackUser
pub fn mopt_deleted(&mut self, value: Option<bool>) -> &mut SlackUser
pub fn with_deleted(self, value: bool) -> SlackUser
pub fn without_deleted(self) -> SlackUser
pub fn opt_deleted(self, value: Option<bool>) -> SlackUser
pub fn color(&mut self, value: SlackColor) -> &mut SlackUser
pub fn reset_color(&mut self) -> &mut SlackUser
pub fn mopt_color(&mut self, value: Option<SlackColor>) -> &mut SlackUser
pub fn with_color(self, value: SlackColor) -> SlackUser
pub fn without_color(self) -> SlackUser
pub fn opt_color(self, value: Option<SlackColor>) -> SlackUser
pub fn real_name(&mut self, value: String) -> &mut SlackUser
pub fn reset_real_name(&mut self) -> &mut SlackUser
pub fn mopt_real_name(&mut self, value: Option<String>) -> &mut SlackUser
pub fn with_real_name(self, value: String) -> SlackUser
pub fn without_real_name(self) -> SlackUser
pub fn opt_real_name(self, value: Option<String>) -> SlackUser
Trait Implementations
sourceimpl<'de> Deserialize<'de> for SlackUser
impl<'de> Deserialize<'de> for SlackUser
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<SlackUser, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackUser, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<SlackUserInit> for SlackUser
impl From<SlackUserInit> for SlackUser
sourcefn from(value: SlackUserInit) -> SlackUser
fn from(value: SlackUserInit) -> SlackUser
Converts to this type from the input type.
sourceimpl Serialize for SlackUser
impl Serialize for SlackUser
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SlackUser
Auto Trait Implementations
impl RefUnwindSafe for SlackUser
impl Send for SlackUser
impl Sync for SlackUser
impl Unpin for SlackUser
impl UnwindSafe for SlackUser
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more