Struct slack_morphism_models::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>,
}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>Implementations
sourceimpl 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
Trait Implementations
sourceimpl Clone for SlackUserFlags
impl Clone for SlackUserFlags
sourcefn clone(&self) -> SlackUserFlags
fn clone(&self) -> SlackUserFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SlackUserFlags
impl Debug for SlackUserFlags
sourceimpl<'de> Deserialize<'de> for SlackUserFlags
impl<'de> Deserialize<'de> for SlackUserFlags
sourcefn 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
sourceimpl From<SlackUserFlagsInit> for SlackUserFlags
impl From<SlackUserFlagsInit> for SlackUserFlags
sourcefn from(value: SlackUserFlagsInit) -> Self
fn from(value: SlackUserFlagsInit) -> Self
Performs the conversion.
sourceimpl PartialEq<SlackUserFlags> for SlackUserFlags
impl PartialEq<SlackUserFlags> for SlackUserFlags
sourcefn eq(&self, other: &SlackUserFlags) -> bool
fn eq(&self, other: &SlackUserFlags) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SlackUserFlags) -> bool
fn ne(&self, other: &SlackUserFlags) -> bool
This method tests for !=.
sourceimpl Serialize for SlackUserFlags
impl Serialize for SlackUserFlags
impl StructuralPartialEq for SlackUserFlags
Auto Trait Implementations
impl RefUnwindSafe for SlackUserFlags
impl Send for SlackUserFlags
impl Sync for SlackUserFlags
impl Unpin for SlackUserFlags
impl UnwindSafe for SlackUserFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more