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/channel/message.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/channel/message.rs')
| -rw-r--r-- | src/model/channel/message.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/channel/message.rs b/src/model/channel/message.rs index 87385ac..1bb55ab 100644 --- a/src/model/channel/message.rs +++ b/src/model/channel/message.rs @@ -17,7 +17,7 @@ use {constants, http, utils as serenity_utils}; /// A representation of a message over a guild's text channel, a group, or a /// private channel. -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct Message { /// The unique Id of the message. Can be used to calculate the creation date /// of the message. @@ -584,7 +584,7 @@ impl<'a> From<&'a Message> for MessageId { /// /// [`count`]: #structfield.count /// [reaction type]: enum.ReactionType.html -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct MessageReaction { /// The amount of the type of reaction that have been sent for the /// associated message. |