Enum serenity::model::channel::ChannelType [−][src]
pub enum ChannelType { Text, Private, Voice, Group, Category, }
A representation of a type of channel.
Variants
Text
An indicator that the channel is a text GuildChannel
.
Private
An indicator that the channel is a PrivateChannel
.
Voice
An indicator that the channel is a voice GuildChannel
.
Group
An indicator that the channel is the channel of a Group
.
Category
An indicator that the channel is the channel of a ChannelCategory
.
Methods
impl ChannelType
[src]
impl ChannelType
Trait Implementations
impl Clone for ChannelType
[src]
impl Clone for ChannelType
fn clone(&self) -> ChannelType
[src]
fn clone(&self) -> ChannelType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for ChannelType
[src]
impl Copy for ChannelType
impl Debug for ChannelType
[src]
impl Debug for ChannelType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for ChannelType
[src]
impl Eq for ChannelType
impl Hash for ChannelType
[src]
impl Hash for ChannelType
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for ChannelType
[src]
impl PartialEq for ChannelType
fn eq(&self, other: &ChannelType) -> bool
[src]
fn eq(&self, other: &ChannelType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialOrd for ChannelType
[src]
impl PartialOrd for ChannelType
fn partial_cmp(&self, other: &ChannelType) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &ChannelType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for ChannelType
[src]
impl Ord for ChannelType
fn cmp(&self, other: &ChannelType) -> Ordering
[src]
fn cmp(&self, other: &ChannelType) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Serialize for ChannelType
[src]
impl Serialize for ChannelType
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for ChannelType
[src]
impl<'de> Deserialize<'de> for ChannelType
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl Send for ChannelType
impl Send for ChannelType
impl Sync for ChannelType
impl Sync for ChannelType