#[non_exhaustive]pub struct TemplateForumTag {
pub name: CompactString,
pub moderated: bool,
pub emoji_id: Option<EmojiId>,
pub emoji_name: Option<CompactString>,
}Expand description
A forum tag in a TemplateChannel: like a ForumTag, but
without an ID (D-059).
discord.js counterpart: a forum tag of APITemplateSerializedSourceGuild (discord-api-types).
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.name: CompactStringThe tag’s name.
moderated: boolWhether only members with MANAGE_THREADS can add the tag.
emoji_id: Option<EmojiId>The tag’s custom emoji.
emoji_name: Option<CompactString>The tag’s Unicode emoji.
Trait Implementations§
Source§impl Clone for TemplateForumTag
impl Clone for TemplateForumTag
Source§impl Debug for TemplateForumTag
impl Debug for TemplateForumTag
Source§impl<'de> Deserialize<'de> for TemplateForumTag
impl<'de> Deserialize<'de> for TemplateForumTag
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 TemplateForumTag
Source§impl Hash for TemplateForumTag
impl Hash for TemplateForumTag
Source§impl PartialEq for TemplateForumTag
impl PartialEq for TemplateForumTag
Source§impl Serialize for TemplateForumTag
impl Serialize for TemplateForumTag
impl StructuralPartialEq for TemplateForumTag
Auto Trait Implementations§
impl Freeze for TemplateForumTag
impl RefUnwindSafe for TemplateForumTag
impl Send for TemplateForumTag
impl Sync for TemplateForumTag
impl Unpin for TemplateForumTag
impl UnsafeUnpin for TemplateForumTag
impl UnwindSafe for TemplateForumTag
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