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/invite.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/invite.rs')
| -rw-r--r-- | src/model/invite.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/invite.rs b/src/model/invite.rs index 5429656..6573e35 100644 --- a/src/model/invite.rs +++ b/src/model/invite.rs @@ -15,7 +15,7 @@ use {http, utils}; /// Information about an invite code. /// /// Information can not be accessed for guilds the current user is banned from. -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct Invite { /// The approximate number of [`Member`]s in the related [`Guild`]. /// @@ -152,7 +152,7 @@ impl Invite { } /// A inimal information about the channel an invite points to. -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct InviteChannel { pub id: ChannelId, pub name: String, @@ -160,7 +160,7 @@ pub struct InviteChannel { } /// A minimal amount of information about the guild an invite points to. -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct InviteGuild { pub id: GuildId, pub icon: Option<String>, @@ -218,7 +218,7 @@ impl InviteGuild { /// /// [`Invite`]: struct.Invite.html /// [Manage Guild]: permissions/constant.MANAGE_GUILD.html -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct RichInvite { /// A representation of the minimal amount of information needed about the /// channel being invited to. |