#[non_exhaustive]pub struct ForumTag {
pub id: TagId,
pub name: CompactString,
pub moderated: bool,
pub emoji_id: Option<EmojiId>,
pub emoji_name: Option<CompactString>,
}Expand description
A tag that can be applied to posts of a forum or media channel.
discord.js counterpart: GuildForumTag.
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: TagIdThe tag’s ID.
name: CompactStringThe tag’s name (0-20 characters).
moderated: boolWhether only members with MANAGE_THREADS can add or remove the tag.
emoji_id: Option<EmojiId>The tag’s custom emoji.
emoji_name: Option<CompactString>The tag’s Unicode emoji.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ForumTag
impl<'de> Deserialize<'de> for ForumTag
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ForumTag
Source§impl From<&ForumTag> for ForumTagData
impl From<&ForumTag> for ForumTagData
Source§impl From<ForumTag> for ForumTagData
An existing tag, sent back unchanged.
impl From<ForumTag> for ForumTagData
An existing tag, sent back unchanged.
impl StructuralPartialEq for ForumTag
Auto Trait Implementations§
impl Forget for ForumTag
impl Freeze for ForumTag
impl Move for ForumTag
impl RefUnwindSafe for ForumTag
impl Send for ForumTag
impl Sync for ForumTag
impl Unpin for ForumTag
impl UnsafeUnpin for ForumTag
impl UnwindSafe for ForumTag
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