Struct slack_morphism::SlackUserFlags
source · pub struct SlackUserFlags {
pub is_admin: Option<bool>,
pub is_app_user: Option<bool>,
pub is_bot: Option<bool>,
pub is_invited_user: Option<bool>,
pub is_owner: Option<bool>,
pub is_primary_owner: Option<bool>,
pub is_restricted: Option<bool>,
pub is_stranger: Option<bool>,
pub is_ultra_restricted: Option<bool>,
pub has_2fa: Option<bool>,
}Fields§
§is_admin: Option<bool>§is_app_user: Option<bool>§is_bot: Option<bool>§is_invited_user: Option<bool>§is_owner: Option<bool>§is_primary_owner: Option<bool>§is_restricted: Option<bool>§is_stranger: Option<bool>§is_ultra_restricted: Option<bool>§has_2fa: Option<bool>Implementations§
source§impl SlackUserFlags
impl SlackUserFlags
pub fn new() -> Self
pub fn is_admin(&mut self, value: bool) -> &mut Self
pub fn reset_is_admin(&mut self) -> &mut Self
pub fn mopt_is_admin(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_admin(self, value: bool) -> Self
pub fn without_is_admin(self) -> Self
pub fn opt_is_admin(self, value: Option<bool>) -> Self
pub fn is_app_user(&mut self, value: bool) -> &mut Self
pub fn reset_is_app_user(&mut self) -> &mut Self
pub fn mopt_is_app_user(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_app_user(self, value: bool) -> Self
pub fn without_is_app_user(self) -> Self
pub fn opt_is_app_user(self, value: Option<bool>) -> Self
pub fn is_bot(&mut self, value: bool) -> &mut Self
pub fn reset_is_bot(&mut self) -> &mut Self
pub fn mopt_is_bot(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_bot(self, value: bool) -> Self
pub fn without_is_bot(self) -> Self
pub fn opt_is_bot(self, value: Option<bool>) -> Self
pub fn is_invited_user(&mut self, value: bool) -> &mut Self
pub fn reset_is_invited_user(&mut self) -> &mut Self
pub fn mopt_is_invited_user(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_invited_user(self, value: bool) -> Self
pub fn without_is_invited_user(self) -> Self
pub fn opt_is_invited_user(self, value: Option<bool>) -> Self
pub fn is_owner(&mut self, value: bool) -> &mut Self
pub fn reset_is_owner(&mut self) -> &mut Self
pub fn mopt_is_owner(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_owner(self, value: bool) -> Self
pub fn without_is_owner(self) -> Self
pub fn opt_is_owner(self, value: Option<bool>) -> Self
pub fn is_primary_owner(&mut self, value: bool) -> &mut Self
pub fn reset_is_primary_owner(&mut self) -> &mut Self
pub fn mopt_is_primary_owner(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_primary_owner(self, value: bool) -> Self
pub fn without_is_primary_owner(self) -> Self
pub fn opt_is_primary_owner(self, value: Option<bool>) -> Self
pub fn is_restricted(&mut self, value: bool) -> &mut Self
pub fn reset_is_restricted(&mut self) -> &mut Self
pub fn mopt_is_restricted(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_restricted(self, value: bool) -> Self
pub fn without_is_restricted(self) -> Self
pub fn opt_is_restricted(self, value: Option<bool>) -> Self
pub fn is_stranger(&mut self, value: bool) -> &mut Self
pub fn reset_is_stranger(&mut self) -> &mut Self
pub fn mopt_is_stranger(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_stranger(self, value: bool) -> Self
pub fn without_is_stranger(self) -> Self
pub fn opt_is_stranger(self, value: Option<bool>) -> Self
pub fn is_ultra_restricted(&mut self, value: bool) -> &mut Self
pub fn reset_is_ultra_restricted(&mut self) -> &mut Self
pub fn mopt_is_ultra_restricted(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_ultra_restricted(self, value: bool) -> Self
pub fn without_is_ultra_restricted(self) -> Self
pub fn opt_is_ultra_restricted(self, value: Option<bool>) -> Self
pub fn has_2fa(&mut self, value: bool) -> &mut Self
pub fn reset_has_2fa(&mut self) -> &mut Self
pub fn mopt_has_2fa(&mut self, value: Option<bool>) -> &mut Self
pub fn with_has_2fa(self, value: bool) -> Self
pub fn without_has_2fa(self) -> Self
pub fn opt_has_2fa(self, value: Option<bool>) -> Self
Trait Implementations§
source§impl Clone for SlackUserFlags
impl Clone for SlackUserFlags
source§fn clone(&self) -> SlackUserFlags
fn clone(&self) -> SlackUserFlags
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SlackUserFlags
impl Debug for SlackUserFlags
source§impl<'de> Deserialize<'de> for SlackUserFlags
impl<'de> Deserialize<'de> for SlackUserFlags
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<SlackUserFlagsInit> for SlackUserFlags
impl From<SlackUserFlagsInit> for SlackUserFlags
source§fn from(value: SlackUserFlagsInit) -> Self
fn from(value: SlackUserFlagsInit) -> Self
Converts to this type from the input type.