Add missing #[serde(rename = "type")] to Notification::notification_type (#4)
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user