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/misc.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/misc.rs')
| -rw-r--r-- | src/model/misc.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/misc.rs b/src/model/misc.rs index ee048af..183ddc3 100644 --- a/src/model/misc.rs +++ b/src/model/misc.rs @@ -220,7 +220,7 @@ impl FromStr for EmojiIdentifier { /// A component that was affected during a service incident. /// /// This is pulled from the Discord status page. -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct AffectedComponent { pub name: String, } @@ -228,7 +228,7 @@ pub struct AffectedComponent { /// An incident retrieved from the Discord status page. /// /// This is not necessarily a representation of an ongoing incident. -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct Incident { pub created_at: String, pub id: String, @@ -247,7 +247,7 @@ pub struct Incident { /// /// This will typically state what new information has been discovered about an /// incident. -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct IncidentUpdate { pub affected_components: Vec<AffectedComponent>, pub body: String, @@ -272,7 +272,7 @@ pub enum IncidentStatus { /// A Discord status maintenance message. This can be either for active /// maintenances or for scheduled maintenances. -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct Maintenance { pub description: String, pub id: String, |