From 5a06265e8791e3b10509bf017113f67228b49cdc Mon Sep 17 00:00:00 2001 From: Aaron Power Date: Fri, 21 Apr 2017 18:53:54 +0100 Subject: [PATCH] Added serde rename for notificiation, and updated repo link --- Cargo.toml | 4 ++-- src/entities/notification.rs | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 92e0a0b..7318538 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "mammut" -version = "0.4.0" +version = "0.4.1" description = "A wrapper around the Mastodon API." authors = ["Aaron Power "] license = "MIT/Apache-2.0" readme = "README.md" -repository = "https://github.com/Aaronepower/mastodon.rs.git" +repository = "https://github.com/Aaronepower/mammut.git" keywords = ["api", "web", "social", "mastodon", "wrapper"] categories = ["web-programming", "http-client"] diff --git a/src/entities/notification.rs b/src/entities/notification.rs index 2a6690d..3ebee85 100644 --- a/src/entities/notification.rs +++ b/src/entities/notification.rs @@ -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, }