pub struct ForumTag<'a> {
pub id: Snowflake,
pub name: TitanString<'a>,
pub moderated: bool,
pub emoji_id: Option<Snowflake>,
pub emoji_name: Option<TitanString<'a>>,
}Expand description
A tag in a forum channel.
Fields§
§id: SnowflakeThe ID of the tag.
name: TitanString<'a>The name of the tag (0-20 characters).
moderated: boolWhether this tag can only be added/removed by moderators.
emoji_id: Option<Snowflake>The ID of a guild’s custom emoji.
emoji_name: Option<TitanString<'a>>The unicode character of the emoji.
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for ForumTag<'a>
impl<'de, 'a> Deserialize<'de> for ForumTag<'a>
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<'a> Freeze for ForumTag<'a>
impl<'a> RefUnwindSafe for ForumTag<'a>
impl<'a> Send for ForumTag<'a>
impl<'a> Sync for ForumTag<'a>
impl<'a> Unpin for ForumTag<'a>
impl<'a> UnwindSafe for ForumTag<'a>
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