#[non_exhaustive]pub struct ForumTag {
pub id: ForumTagId,
pub name: String,
pub moderated: bool,
pub emoji: Option<ForumEmoji>,
}
Expand description
An object that represents a tag able to be applied to a thread in a GUILD_FORUM
channel.
See Discord docs
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: ForumTagId
The id of the tag.
name: String
The name of the tag (0-20 characters).
moderated: bool
Whether this tag can only be added to or removed from threads by a member with the MANAGE_THREADS permission.
emoji: Option<ForumEmoji>
The emoji to display next to the tag.
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
Auto Trait Implementations§
impl Freeze for ForumTag
impl RefUnwindSafe for ForumTag
impl Send for ForumTag
impl Sync for ForumTag
impl Unpin 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