#[non_exhaustive]
pub enum GuildChannelFields {
Category(CategoryFields),
Text(TextFields),
Voice(VoiceFields),
}Expand description
Variants of channel fields sent to Discord.
Use GuildChannelFieldsBuilder to build one.
Variants (Non-exhaustive)§
This enum is marked as 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.
Implementations§
source§impl GuildChannelFields
impl GuildChannelFields
pub const fn id(&self) -> Id<ChannelMarker>
Trait Implementations§
source§impl Clone for GuildChannelFields
impl Clone for GuildChannelFields
source§fn clone(&self) -> GuildChannelFields
fn clone(&self) -> GuildChannelFields
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 GuildChannelFields
impl Debug for GuildChannelFields
source§impl PartialEq<GuildChannelFields> for GuildChannelFields
impl PartialEq<GuildChannelFields> for GuildChannelFields
source§fn eq(&self, other: &GuildChannelFields) -> bool
fn eq(&self, other: &GuildChannelFields) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for GuildChannelFields
impl Serialize for GuildChannelFields
impl Eq for GuildChannelFields
impl StructuralEq for GuildChannelFields
impl StructuralPartialEq for GuildChannelFields
Auto Trait Implementations§
impl RefUnwindSafe for GuildChannelFields
impl Send for GuildChannelFields
impl Sync for GuildChannelFields
impl Unpin for GuildChannelFields
impl UnwindSafe for GuildChannelFields
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.