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
+2 -2
View File
@@ -1,11 +1,11 @@
[package] [package]
name = "mammut" name = "mammut"
version = "0.4.0" version = "0.4.1"
description = "A wrapper around the Mastodon API." description = "A wrapper around the Mastodon API."
authors = ["Aaron Power <theaaronepower@gmail.com>"] authors = ["Aaron Power <theaaronepower@gmail.com>"]
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
readme = "README.md" readme = "README.md"
repository = "https://github.com/Aaronepower/mastodon.rs.git" repository = "https://github.com/Aaronepower/mammut.git"
keywords = ["api", "web", "social", "mastodon", "wrapper"] keywords = ["api", "web", "social", "mastodon", "wrapper"]
categories = ["web-programming", "http-client"] categories = ["web-programming", "http-client"]
+4
View File
@@ -13,8 +13,12 @@ pub struct Notification {
#[derive(Debug, Clone, Deserialize)] #[derive(Debug, Clone, Deserialize)]
pub enum NotificationType { pub enum NotificationType {
#[serde(rename = "mention")]
Mention, Mention,
#[serde(rename = "reblog")]
Reblog, Reblog,
#[serde(rename = "favourite")]
Favourite, Favourite,
#[serde(rename = "follow")]
Follow, Follow,
} }