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.
20 lines
421 B
20 lines
421 B
use chrono::prelude::*;
|
|
use super::account::Account;
|
|
use super::status::Status;
|
|
|
|
#[derive(Debug, Clone, Deserialize)]
|
|
pub struct Notification {
|
|
pub id: u64,
|
|
pub notification_type: NotificationType,
|
|
pub created_at: DateTime<UTC>,
|
|
pub account: Account,
|
|
pub status: Option<Status>,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Deserialize)]
|
|
pub enum NotificationType {
|
|
Mention,
|
|
Reblog,
|
|
Favourite,
|
|
Follow,
|
|
}
|
|
|