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.
Source§impl PartialEq for SlackUserFlags
impl PartialEq for SlackUserFlags
Source§impl Serialize for SlackUserFlags
impl Serialize for SlackUserFlags
impl StructuralPartialEq for SlackUserFlags
Auto Trait Implementations§
impl Freeze for SlackUserFlags
impl RefUnwindSafe for SlackUserFlags
impl Send for SlackUserFlags
impl Sync for SlackUserFlags
impl Unpin for SlackUserFlags
impl UnwindSafe for SlackUserFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)