Try: Derive Type, FromRow for Tag

This commit is contained in:
bitfl0wer 2024-08-20 15:44:26 +02:00
parent f31c7298d8
commit bf94b9c04c
No known key found for this signature in database
GPG Key ID: 8D90CA11485CD14D
1 changed files with 2 additions and 0 deletions

View File

@ -171,6 +171,8 @@ fn compare_permission_overwrites(
/// ///
/// # Reference /// # Reference
/// See <https://discord-userdoccers.vercel.app/resources/channel#forum-tag-object> /// See <https://discord-userdoccers.vercel.app/resources/channel#forum-tag-object>
#[cfg_attr(feature = "sqlx", derive(sqlx::FromRow, sqlx::Type))]
#[cfg_attr(feature = "sqlx", sqlx(type_name = "interface_type"))]
pub struct Tag { pub struct Tag {
pub id: Snowflake, pub id: Snowflake,
/// The name of the tag (max 20 characters) /// The name of the tag (max 20 characters)