Add missing #[serde(rename = "type")] to Notification::notification_type (#4)

This commit is contained in:
wariuni
2017-06-01 15:39:10 +01:00
committed by Aaron Power
parent 5332b47ede
commit 9515b89690
+1
View File
@@ -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<UTC>,
pub account: Account,