diff options
| author | Zeyla Hellyer <[email protected]> | 2018-01-01 15:55:46 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-01-01 15:55:46 -0800 |
| commit | 25dddb6695109eeead9e19593cb85a22096c2c7a (patch) | |
| tree | d68d78d210a2804d10027035163871bf806c7e23 /src/model/application.rs | |
| parent | Give hyper Response in HTTP errors (diff) | |
| download | serenity-25dddb6695109eeead9e19593cb85a22096c2c7a.tar.xz serenity-25dddb6695109eeead9e19593cb85a22096c2c7a.zip | |
Implement or derive Serialize on all models
Diffstat (limited to 'src/model/application.rs')
| -rw-r--r-- | src/model/application.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/application.rs b/src/model/application.rs index dca8e41..47bbfb8 100644 --- a/src/model/application.rs +++ b/src/model/application.rs @@ -6,7 +6,7 @@ use super::utils::default_true; /// Information about a user's application. An application does not necessarily /// have an associated bot user. -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct ApplicationInfo { /// The bot user associated with the application. See [`BotApplication`] for /// more information. @@ -47,7 +47,7 @@ pub struct ApplicationInfo { } /// Information about an application with an application's bot user. -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct BotApplication { /// The unique Id of the bot user. pub id: UserId, @@ -73,7 +73,7 @@ pub struct BotApplication { } /// Information about the current application and its owner. -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct CurrentApplicationInfo { pub description: String, pub icon: Option<String>, |