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/user.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/user.rs')
| -rw-r--r-- | src/model/user.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/user.rs b/src/model/user.rs index fc1ec3a..1cedf3e 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -27,7 +27,7 @@ use std::sync::Arc; use utils; /// Information about the current user. -#[derive(Clone, Default, Debug, Deserialize)] +#[derive(Clone, Default, Debug, Deserialize, Serialize)] pub struct CurrentUser { pub id: UserId, pub avatar: Option<String>, @@ -337,7 +337,7 @@ impl Default for OnlineStatus { } /// Information about a user. -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct User { /// The unique Id of the user. Can be used to calculate the account's /// creation date. |