From 9515b89690f7b01abf815b90029ed0c3edc5748a Mon Sep 17 00:00:00 2001 From: wariuni Date: Thu, 1 Jun 2017 23:39:10 +0900 Subject: [PATCH] Add missing #[serde(rename = "type")] to Notification::notification_type (#4) --- src/entities/notification.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entities/notification.rs b/src/entities/notification.rs index 3ebee85..4e71e4d 100644 --- a/src/entities/notification.rs +++ b/src/entities/notification.rs @@ -5,6 +5,7 @@ use super::status::Status; #[derive(Debug, Clone, Deserialize)] pub struct Notification { pub id: u64, + #[serde(rename = "type")] pub notification_type: NotificationType, pub created_at: DateTime, pub account: Account,