pub struct ForumTag {
pub emoji_id: Option<Id<EmojiMarker>>,
pub emoji_name: Option<String>,
pub id: Id<TagMarker>,
pub moderated: bool,
pub name: String,
}Expand description
Tag that is able to be applied to a thread in a GuildForum Channel.
May at most contain one of emoji_id and emoji_name.
Fields§
§emoji_id: Option<Id<EmojiMarker>>ID of custom guild emoji.
Some guilds can have forum tags that have an ID of 0; if this is the
case, then the emoji ID is None.
Conflicts with emoji_name.
emoji_name: Option<String>Unicode emoji character.
Conflicts with emoji_name.
id: Id<TagMarker>ID of the tag.
moderated: boolWhether the tag can only be added or removed by Members with the
MANAGE_THREADS permission.
name: StringName of the tag (0–20 characters).
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
impl StructuralPartialEq for ForumTag
Auto Trait Implementations§
impl Forget for ForumTag
impl Freeze for ForumTagwhere
PhantomData<fn(EmojiMarker) -> EmojiMarker>: Freeze,
NonZero<u64>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<fn(TagMarker) -> TagMarker>: Freeze,
impl Move for ForumTag
impl RefUnwindSafe for ForumTag
impl Send for ForumTag
impl Sync for ForumTag
impl Unpin for ForumTag
impl UnsafeUnpin for ForumTagwhere
PhantomData<fn(EmojiMarker) -> EmojiMarker>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<fn(TagMarker) -> TagMarker>: UnsafeUnpin,
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