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

master
wariuni 7 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)]
pub struct Notification {
pub id: u64,
#[serde(rename = "type")]
pub notification_type: NotificationType,
pub created_at: DateTime<UTC>,
pub account: Account,

Loading…
Cancel
Save