serde(skip) ids where full objects are returned

This commit is contained in:
Quaternion 2023-05-26 16:23:33 -04:00
parent 192f352b56
commit e2e325ceab
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@ pub struct Application {
#[cfg_attr(feature = "sqlx", sqlx(skip))]
pub owner: User,
#[cfg(feature = "sqlx")]
#[serde(skip)]
pub owner_id: Snowflake,
pub flags: u64,
#[cfg(feature = "sqlx")]
@ -40,6 +41,7 @@ pub struct Application {
#[cfg_attr(feature = "sqlx", sqlx(skip))]
pub bot_user: Option<User>,
#[cfg(feature = "sqlx")]
#[serde(skip)]
pub bot_user_id: Option<Snowflake>,
#[cfg(feature = "sqlx")]
pub tags: Option<sqlx::types::Json<Vec<String>>>,
@ -55,6 +57,7 @@ pub struct Application {
#[cfg_attr(feature = "sqlx", sqlx(skip))]
pub team: Option<Team>,
#[cfg(feature = "sqlx")]
#[serde(skip)]
pub team_id: Option<Snowflake>,
}