[−][src]Enum strife::model::channel::guild::GuildChannel
A channel in a Guild
.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text(TextChannel)
A text channel in a Guild
.
Voice(VoiceChannel)
A voice channel in a Guild
.
Category(Category)
An organizational category that contains non-category channels.
News(NewsChannel)
A channel that users can follow and crosspost into another Guild
.
Store(StoreChannel)
A channel in which game developers can sell games on Discord.
Methods
impl GuildChannel
[src]
pub fn kind(&self) -> ChannelType
[src]
The type of the channel.
Trait Implementations
impl Clone for GuildChannel
[src]
fn clone(&self) -> GuildChannel
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for GuildChannel
[src]
impl<'de> Deserialize<'de> for GuildChannel
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Serialize for GuildChannel
[src]
impl ToSnowflakeId for GuildChannel
[src]
Auto Trait Implementations
impl RefUnwindSafe for GuildChannel
impl Send for GuildChannel
impl Sync for GuildChannel
impl Unpin for GuildChannel
impl UnwindSafe for GuildChannel
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,