mastodon API rust lib elefren, fixed and updated. and also all ASYNC! NB. most examples are now wrong.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
elefren-fork/src/entities/notification.rs

21 lines
393 B

7 years ago
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,
}