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_shared: Option<bool>§is_org_shared: Option<bool>§is_member: Option<bool>§is_private: Option<bool>§is_mpim: Option<bool>§is_user_deleted: Option<bool>

Implementations§

source§

impl SlackChannelFlags

source

pub fn new() -> Self

source

pub fn is_channel(&mut self, value: bool) -> &mut Self

source

pub fn reset_is_channel(&mut self) -> &mut Self

source

pub fn mopt_is_channel(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_is_channel(self, value: bool) -> Self

source

pub fn without_is_channel(self) -> Self

source

pub fn opt_is_channel(self, value: Option<bool>) -> Self

source

pub fn is_group(&mut self, value: bool) -> &mut Self

source

pub fn reset_is_group(&mut self) -> &mut Self

source

pub fn mopt_is_group(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_is_group(self, value: bool) -> Self

source

pub fn without_is_group(self) -> Self

source

pub fn opt_is_group(self, value: Option<bool>) -> Self

source

pub fn is_im(&mut self, value: bool) -> &mut Self

source

pub fn reset_is_im(&mut self) -> &mut Self

source

pub fn mopt_is_im(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_is_im(self, value: bool) -> Self

source

pub fn without_is_im(self) -> Self

source

pub fn opt_is_im(self, value: Option<bool>) -> Self

source

pub fn is_archived(&mut self, value: bool) -> &mut Self

source

pub fn reset_is_archived(&mut self) -> &mut Self

source

pub fn mopt_is_archived(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_is_archived(self, value: bool) -> Self

source

pub fn without_is_archived(self) -> Self

source

pub fn opt_is_archived(self, value: Option<bool>) -> Self

source

pub fn is_general(&mut self, value: bool) -> &mut Self

source

pub fn reset_is_general(&mut self) -> &mut Self

source

pub fn mopt_is_general(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_is_general(self, value: bool) -> Self

source

pub fn without_is_general(self) -> Self

source

pub fn opt_is_general(self, value: Option<bool>) -> Self

source

pub fn is_shared(&mut self, value: bool) -> &mut Self

source

pub fn reset_is_shared(&mut self) -> &mut Self

source

pub fn mopt_is_shared(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_is_shared(self, value: bool) -> Self

source

pub fn without_is_shared(self) -> Self

source

pub fn opt_is_shared(self, value: Option<bool>) -> Self

source

pub fn is_org_shared(&mut self, value: bool) -> &mut Self

source

pub fn reset_is_org_shared(&mut self) -> &mut Self

source

pub fn mopt_is_org_shared(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_is_org_shared(self, value: bool) -> Self

source

pub fn without_is_org_shared(self) -> Self

source

pub fn opt_is_org_shared(self, value: Option<bool>) -> Self

source

pub fn is_member(&mut self, value: bool) -> &mut Self

source

pub fn reset_is_member(&mut self) -> &mut Self

source

pub fn mopt_is_member(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_is_member(self, value: bool) -> Self

source

pub fn without_is_member(self) -> Self

source

pub fn opt_is_member(self, value: Option<bool>) -> Self

source

pub fn is_private(&mut self, value: bool) -> &mut Self

source

pub fn reset_is_private(&mut self) -> &mut Self

source

pub fn mopt_is_private(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_is_private(self, value: bool) -> Self

source

pub fn without_is_private(self) -> Self

source

pub fn opt_is_private(self, value: Option<bool>) -> Self

source

pub fn is_mpim(&mut self, value: bool) -> &mut Self

source

pub fn reset_is_mpim(&mut self) -> &mut Self

source

pub fn mopt_is_mpim(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_is_mpim(self, value: bool) -> Self

source

pub fn without_is_mpim(self) -> Self

source

pub fn opt_is_mpim(self, value: Option<bool>) -> Self

source

pub fn is_user_deleted(&mut self, value: bool) -> &mut Self

source

pub fn reset_is_user_deleted(&mut self) -> &mut Self

source

pub fn mopt_is_user_deleted(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_is_user_deleted(self, value: bool) -> Self

source

pub fn without_is_user_deleted(self) -> Self

source

pub fn opt_is_user_deleted(self, value: Option<bool>) -> Self

Trait Implementations§

source§

impl Clone for SlackChannelFlags

source§

fn clone(&self) -> SlackChannelFlags

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SlackChannelFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SlackChannelFlags

source§

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

source§

fn from(value: SlackChannelFlagsInit) -> Self

Converts to this type from the input type.
source§

impl PartialEq for SlackChannelFlags

source§

fn eq(&self, other: &SlackChannelFlags) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for SlackChannelFlags

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for SlackChannelFlags

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,