serde(skip) ids where full objects are returned

This commit is contained in:
Quaternion 2023-05-26 16:24:42 -04:00
parent e2e325ceab
commit 4164d0c8cf
1 changed files with 2 additions and 0 deletions

View File

@ -13,10 +13,12 @@ pub struct Emoji {
#[cfg(not(feature = "sqlx"))]
pub roles: Option<Vec<Snowflake>>,
#[cfg(feature = "sqlx")]
#[serde(skip)]
pub guild_id: Snowflake,
#[cfg_attr(feature = "sqlx", sqlx(skip))]
pub guild: Guild,
#[cfg(feature = "sqlx")]
#[serde(skip)]
pub user_id: Option<Snowflake>,
#[cfg_attr(feature = "sqlx", sqlx(skip))]
pub user: Option<User>,