aboutsummaryrefslogtreecommitdiff
path: root/src/model/misc.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2018-01-01 15:55:46 -0800
committerZeyla Hellyer <[email protected]>2018-01-01 15:55:46 -0800
commit25dddb6695109eeead9e19593cb85a22096c2c7a (patch)
treed68d78d210a2804d10027035163871bf806c7e23 /src/model/misc.rs
parentGive hyper Response in HTTP errors (diff)
downloadserenity-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.rs8
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,