Struct discord_flows::model::ChannelCategory
source · pub struct ChannelCategory {
pub id: ChannelId,
pub guild_id: GuildId,
pub parent_id: Option<ChannelId>,
pub position: i64,
pub kind: ChannelType,
pub name: String,
pub nsfw: bool,
pub permission_overwrites: Vec<PermissionOverwrite, Global>,
}
Expand description
A category of GuildChannel
s.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: ChannelId
Id of this category.
guild_id: GuildId
Guild Id this category belongs to.
parent_id: Option<ChannelId>
If this category belongs to another category.
position: i64
The position of this category.
kind: ChannelType
Indicator of the type of channel this is.
This should always be ChannelType::Category
.
name: String
The name of the category.
nsfw: bool
Whether this category is nsfw. (This’ll be inherited by all channels in this category)
permission_overwrites: Vec<PermissionOverwrite, Global>
Permission overwrites for the GuildChannel
s.
Trait Implementations§
source§impl Clone for ChannelCategory
impl Clone for ChannelCategory
source§fn clone(&self) -> ChannelCategory
fn clone(&self) -> ChannelCategory
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 ChannelCategory
impl Debug for ChannelCategory
source§impl<'de> Deserialize<'de> for ChannelCategory
impl<'de> Deserialize<'de> for ChannelCategory
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ChannelCategory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ChannelCategory, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Mentionable for ChannelCategory
impl Mentionable for ChannelCategory
source§impl Serialize for ChannelCategory
impl Serialize for ChannelCategory
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ChannelCategory
impl Send for ChannelCategory
impl Sync for ChannelCategory
impl Unpin for ChannelCategory
impl UnwindSafe for ChannelCategory
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