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: bool
Whether the tag can only be added or removed by Member
s with the
MANAGE_THREADS
permission.
name: String
Name 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)