Initial commit

This commit is contained in:
Aaron Power
2017-04-10 18:00:07 +01:00
commit 36ae371beb
19 changed files with 685 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
use chrono::prelude::*;
use super::account::Account;
use super::status::Status;
#[derive(Deserialize)]
pub struct Notification {
pub id: u64,
pub notification_type: NotificationType,
pub created_at: DateTime<UTC>,
pub account: Account,
pub status: Option<Status>,
}
#[derive(Deserialize)]
pub enum NotificationType {
Mention,
Reblog,
Favourite,
Follow,
}