Added serde rename for notificiation, and updated repo link

This commit is contained in:
Aaron Power
2017-04-21 18:53:54 +01:00
parent 69cec5bf7e
commit 5a06265e87
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -13,8 +13,12 @@ pub struct Notification {
#[derive(Debug, Clone, Deserialize)]
pub enum NotificationType {
#[serde(rename = "mention")]
Mention,
#[serde(rename = "reblog")]
Reblog,
#[serde(rename = "favourite")]
Favourite,
#[serde(rename = "follow")]
Follow,
}