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
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackUserFlags from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn reset_is_admin(&mut self) -> &mut Self
pub fn reset_is_admin(&mut self) -> &mut Self
Sets is_admin to None.
Sourcepub fn mopt_is_admin(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_admin(&mut self, value: Option<bool>) -> &mut Self
Sets is_admin to the given Option.
Sourcepub fn with_is_admin(self, value: bool) -> Self
pub fn with_is_admin(self, value: bool) -> Self
Returns self with is_admin set to Some(value).
Sourcepub fn without_is_admin(self) -> Self
pub fn without_is_admin(self) -> Self
Returns self with is_admin set to None.
Sourcepub fn opt_is_admin(self, value: Option<bool>) -> Self
pub fn opt_is_admin(self, value: Option<bool>) -> Self
Returns self with is_admin set to the given Option.
Sourcepub fn is_app_user(&mut self, value: bool) -> &mut Self
pub fn is_app_user(&mut self, value: bool) -> &mut Self
Sets is_app_user to Some(value).
Sourcepub fn reset_is_app_user(&mut self) -> &mut Self
pub fn reset_is_app_user(&mut self) -> &mut Self
Sets is_app_user to None.
Sourcepub fn mopt_is_app_user(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_app_user(&mut self, value: Option<bool>) -> &mut Self
Sets is_app_user to the given Option.
Sourcepub fn with_is_app_user(self, value: bool) -> Self
pub fn with_is_app_user(self, value: bool) -> Self
Returns self with is_app_user set to Some(value).
Sourcepub fn without_is_app_user(self) -> Self
pub fn without_is_app_user(self) -> Self
Returns self with is_app_user set to None.
Sourcepub fn opt_is_app_user(self, value: Option<bool>) -> Self
pub fn opt_is_app_user(self, value: Option<bool>) -> Self
Returns self with is_app_user set to the given Option.
Sourcepub fn reset_is_bot(&mut self) -> &mut Self
pub fn reset_is_bot(&mut self) -> &mut Self
Sets is_bot to None.
Sourcepub fn mopt_is_bot(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_bot(&mut self, value: Option<bool>) -> &mut Self
Sets is_bot to the given Option.
Sourcepub fn with_is_bot(self, value: bool) -> Self
pub fn with_is_bot(self, value: bool) -> Self
Returns self with is_bot set to Some(value).
Sourcepub fn without_is_bot(self) -> Self
pub fn without_is_bot(self) -> Self
Returns self with is_bot set to None.
Sourcepub fn opt_is_bot(self, value: Option<bool>) -> Self
pub fn opt_is_bot(self, value: Option<bool>) -> Self
Returns self with is_bot set to the given Option.
Sourcepub fn is_invited_user(&mut self, value: bool) -> &mut Self
pub fn is_invited_user(&mut self, value: bool) -> &mut Self
Sets is_invited_user to Some(value).
Sourcepub fn reset_is_invited_user(&mut self) -> &mut Self
pub fn reset_is_invited_user(&mut self) -> &mut Self
Sets is_invited_user to None.
Sourcepub fn mopt_is_invited_user(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_invited_user(&mut self, value: Option<bool>) -> &mut Self
Sets is_invited_user to the given Option.
Sourcepub fn with_is_invited_user(self, value: bool) -> Self
pub fn with_is_invited_user(self, value: bool) -> Self
Returns self with is_invited_user set to Some(value).
Sourcepub fn without_is_invited_user(self) -> Self
pub fn without_is_invited_user(self) -> Self
Returns self with is_invited_user set to None.
Sourcepub fn opt_is_invited_user(self, value: Option<bool>) -> Self
pub fn opt_is_invited_user(self, value: Option<bool>) -> Self
Returns self with is_invited_user set to the given Option.
Sourcepub fn reset_is_owner(&mut self) -> &mut Self
pub fn reset_is_owner(&mut self) -> &mut Self
Sets is_owner to None.
Sourcepub fn mopt_is_owner(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_owner(&mut self, value: Option<bool>) -> &mut Self
Sets is_owner to the given Option.
Sourcepub fn with_is_owner(self, value: bool) -> Self
pub fn with_is_owner(self, value: bool) -> Self
Returns self with is_owner set to Some(value).
Sourcepub fn without_is_owner(self) -> Self
pub fn without_is_owner(self) -> Self
Returns self with is_owner set to None.
Sourcepub fn opt_is_owner(self, value: Option<bool>) -> Self
pub fn opt_is_owner(self, value: Option<bool>) -> Self
Returns self with is_owner set to the given Option.
Sourcepub fn is_primary_owner(&mut self, value: bool) -> &mut Self
pub fn is_primary_owner(&mut self, value: bool) -> &mut Self
Sets is_primary_owner to Some(value).
Sourcepub fn reset_is_primary_owner(&mut self) -> &mut Self
pub fn reset_is_primary_owner(&mut self) -> &mut Self
Sets is_primary_owner to None.
Sourcepub fn mopt_is_primary_owner(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_primary_owner(&mut self, value: Option<bool>) -> &mut Self
Sets is_primary_owner to the given Option.
Sourcepub fn with_is_primary_owner(self, value: bool) -> Self
pub fn with_is_primary_owner(self, value: bool) -> Self
Returns self with is_primary_owner set to Some(value).
Sourcepub fn without_is_primary_owner(self) -> Self
pub fn without_is_primary_owner(self) -> Self
Returns self with is_primary_owner set to None.
Sourcepub fn opt_is_primary_owner(self, value: Option<bool>) -> Self
pub fn opt_is_primary_owner(self, value: Option<bool>) -> Self
Returns self with is_primary_owner set to the given Option.
Sourcepub fn is_restricted(&mut self, value: bool) -> &mut Self
pub fn is_restricted(&mut self, value: bool) -> &mut Self
Sets is_restricted to Some(value).
Sourcepub fn reset_is_restricted(&mut self) -> &mut Self
pub fn reset_is_restricted(&mut self) -> &mut Self
Sets is_restricted to None.
Sourcepub fn mopt_is_restricted(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_restricted(&mut self, value: Option<bool>) -> &mut Self
Sets is_restricted to the given Option.
Sourcepub fn with_is_restricted(self, value: bool) -> Self
pub fn with_is_restricted(self, value: bool) -> Self
Returns self with is_restricted set to Some(value).
Sourcepub fn without_is_restricted(self) -> Self
pub fn without_is_restricted(self) -> Self
Returns self with is_restricted set to None.
Sourcepub fn opt_is_restricted(self, value: Option<bool>) -> Self
pub fn opt_is_restricted(self, value: Option<bool>) -> Self
Returns self with is_restricted set to the given Option.
Sourcepub fn is_stranger(&mut self, value: bool) -> &mut Self
pub fn is_stranger(&mut self, value: bool) -> &mut Self
Sets is_stranger to Some(value).
Sourcepub fn reset_is_stranger(&mut self) -> &mut Self
pub fn reset_is_stranger(&mut self) -> &mut Self
Sets is_stranger to None.
Sourcepub fn mopt_is_stranger(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_stranger(&mut self, value: Option<bool>) -> &mut Self
Sets is_stranger to the given Option.
Sourcepub fn with_is_stranger(self, value: bool) -> Self
pub fn with_is_stranger(self, value: bool) -> Self
Returns self with is_stranger set to Some(value).
Sourcepub fn without_is_stranger(self) -> Self
pub fn without_is_stranger(self) -> Self
Returns self with is_stranger set to None.
Sourcepub fn opt_is_stranger(self, value: Option<bool>) -> Self
pub fn opt_is_stranger(self, value: Option<bool>) -> Self
Returns self with is_stranger set to the given Option.
Sourcepub fn is_ultra_restricted(&mut self, value: bool) -> &mut Self
pub fn is_ultra_restricted(&mut self, value: bool) -> &mut Self
Sets is_ultra_restricted to Some(value).
Sourcepub fn reset_is_ultra_restricted(&mut self) -> &mut Self
pub fn reset_is_ultra_restricted(&mut self) -> &mut Self
Sets is_ultra_restricted to None.
Sourcepub fn mopt_is_ultra_restricted(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_ultra_restricted(&mut self, value: Option<bool>) -> &mut Self
Sets is_ultra_restricted to the given Option.
Sourcepub fn with_is_ultra_restricted(self, value: bool) -> Self
pub fn with_is_ultra_restricted(self, value: bool) -> Self
Returns self with is_ultra_restricted set to Some(value).
Sourcepub fn without_is_ultra_restricted(self) -> Self
pub fn without_is_ultra_restricted(self) -> Self
Returns self with is_ultra_restricted set to None.
Sourcepub fn opt_is_ultra_restricted(self, value: Option<bool>) -> Self
pub fn opt_is_ultra_restricted(self, value: Option<bool>) -> Self
Returns self with is_ultra_restricted set to the given Option.
Sourcepub fn reset_has_2fa(&mut self) -> &mut Self
pub fn reset_has_2fa(&mut self) -> &mut Self
Sets has_2fa to None.
Sourcepub fn mopt_has_2fa(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_has_2fa(&mut self, value: Option<bool>) -> &mut Self
Sets has_2fa to the given Option.
Sourcepub fn with_has_2fa(self, value: bool) -> Self
pub fn with_has_2fa(self, value: bool) -> Self
Returns self with has_2fa set to Some(value).
Sourcepub fn without_has_2fa(self) -> Self
pub fn without_has_2fa(self) -> Self
Returns self with has_2fa set to None.
Sourcepub fn opt_has_2fa(self, value: Option<bool>) -> Self
pub fn opt_has_2fa(self, value: Option<bool>) -> Self
Returns self with has_2fa set to the given Option.