forked from MightyPork/elefren-fork
Added serde rename for notificiation, and updated repo link
This commit is contained in:
+2
-2
@@ -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 <theaaronepower@gmail.com>"]
|
||||
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"]
|
||||
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user