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

master
wariuni 8 years ago committed by Aaron Power
parent 5332b47ede
commit 9515b89690
  1. 1
      src/entities/notification.rs

@ -5,6 +5,7 @@ use super::status::Status;
#[derive(Debug, Clone, Deserialize)] #[derive(Debug, Clone, Deserialize)]
pub struct Notification { pub struct Notification {
pub id: u64, pub id: u64,
#[serde(rename = "type")]
pub notification_type: NotificationType, pub notification_type: NotificationType,
pub created_at: DateTime<UTC>, pub created_at: DateTime<UTC>,
pub account: Account, pub account: Account,

Loading…
Cancel
Save