Struct slack_morphism::prelude::SlackChannelFlags
source · pub struct SlackChannelFlags {
pub is_channel: Option<bool>,
pub is_group: Option<bool>,
pub is_im: Option<bool>,
pub is_archived: Option<bool>,
pub is_general: Option<bool>,
pub is_shared: Option<bool>,
pub is_org_shared: Option<bool>,
pub is_member: Option<bool>,
pub is_private: Option<bool>,
pub is_mpim: Option<bool>,
pub is_user_deleted: Option<bool>,
}
Fields§
§is_channel: Option<bool>
§is_group: Option<bool>
§is_im: Option<bool>
§is_archived: Option<bool>
§is_general: Option<bool>
§is_member: Option<bool>
§is_private: Option<bool>
§is_mpim: Option<bool>
§is_user_deleted: Option<bool>
Implementations§
source§impl SlackChannelFlags
impl SlackChannelFlags
pub fn new() -> Self
pub fn is_channel(&mut self, value: bool) -> &mut Self
pub fn reset_is_channel(&mut self) -> &mut Self
pub fn mopt_is_channel(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_channel(self, value: bool) -> Self
pub fn without_is_channel(self) -> Self
pub fn opt_is_channel(self, value: Option<bool>) -> Self
pub fn is_group(&mut self, value: bool) -> &mut Self
pub fn reset_is_group(&mut self) -> &mut Self
pub fn mopt_is_group(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_group(self, value: bool) -> Self
pub fn without_is_group(self) -> Self
pub fn opt_is_group(self, value: Option<bool>) -> Self
pub fn is_im(&mut self, value: bool) -> &mut Self
pub fn reset_is_im(&mut self) -> &mut Self
pub fn mopt_is_im(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_im(self, value: bool) -> Self
pub fn without_is_im(self) -> Self
pub fn opt_is_im(self, value: Option<bool>) -> Self
pub fn is_archived(&mut self, value: bool) -> &mut Self
pub fn reset_is_archived(&mut self) -> &mut Self
pub fn mopt_is_archived(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_archived(self, value: bool) -> Self
pub fn without_is_archived(self) -> Self
pub fn opt_is_archived(self, value: Option<bool>) -> Self
pub fn is_general(&mut self, value: bool) -> &mut Self
pub fn reset_is_general(&mut self) -> &mut Self
pub fn mopt_is_general(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_general(self, value: bool) -> Self
pub fn without_is_general(self) -> Self
pub fn opt_is_general(self, value: Option<bool>) -> Self
pub fn is_member(&mut self, value: bool) -> &mut Self
pub fn reset_is_member(&mut self) -> &mut Self
pub fn mopt_is_member(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_member(self, value: bool) -> Self
pub fn without_is_member(self) -> Self
pub fn opt_is_member(self, value: Option<bool>) -> Self
pub fn is_private(&mut self, value: bool) -> &mut Self
pub fn reset_is_private(&mut self) -> &mut Self
pub fn mopt_is_private(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_private(self, value: bool) -> Self
pub fn without_is_private(self) -> Self
pub fn opt_is_private(self, value: Option<bool>) -> Self
pub fn is_mpim(&mut self, value: bool) -> &mut Self
pub fn reset_is_mpim(&mut self) -> &mut Self
pub fn mopt_is_mpim(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_mpim(self, value: bool) -> Self
pub fn without_is_mpim(self) -> Self
pub fn opt_is_mpim(self, value: Option<bool>) -> Self
pub fn is_user_deleted(&mut self, value: bool) -> &mut Self
pub fn reset_is_user_deleted(&mut self) -> &mut Self
pub fn mopt_is_user_deleted(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_user_deleted(self, value: bool) -> Self
pub fn without_is_user_deleted(self) -> Self
pub fn opt_is_user_deleted(self, value: Option<bool>) -> Self
Trait Implementations§
source§impl Clone for SlackChannelFlags
impl Clone for SlackChannelFlags
source§fn clone(&self) -> SlackChannelFlags
fn clone(&self) -> SlackChannelFlags
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 SlackChannelFlags
impl Debug for SlackChannelFlags
source§impl<'de> Deserialize<'de> for SlackChannelFlags
impl<'de> Deserialize<'de> for SlackChannelFlags
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<SlackChannelFlagsInit> for SlackChannelFlags
impl From<SlackChannelFlagsInit> for SlackChannelFlags
source§fn from(value: SlackChannelFlagsInit) -> Self
fn from(value: SlackChannelFlagsInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackChannelFlags
impl PartialEq for SlackChannelFlags
source§fn eq(&self, other: &SlackChannelFlags) -> bool
fn eq(&self, other: &SlackChannelFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackChannelFlags
impl Serialize for SlackChannelFlags
impl StructuralPartialEq for SlackChannelFlags
Auto Trait Implementations§
impl RefUnwindSafe for SlackChannelFlags
impl Send for SlackChannelFlags
impl Sync for SlackChannelFlags
impl Unpin for SlackChannelFlags
impl UnwindSafe for SlackChannelFlags
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