|
|
@ -20,18 +20,15 @@ pub struct Notification { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// The type of notification.
|
|
|
|
/// The type of notification.
|
|
|
|
#[derive(Debug, Clone, Deserialize)] |
|
|
|
#[derive(Debug, Clone, Copy, Deserialize)] |
|
|
|
|
|
|
|
#[serde(rename_all = "lowercase")] |
|
|
|
pub enum NotificationType { |
|
|
|
pub enum NotificationType { |
|
|
|
/// Someone mentioned the application client in another status.
|
|
|
|
/// Someone mentioned the application client in another status.
|
|
|
|
#[serde(rename = "mention")] |
|
|
|
|
|
|
|
Mention, |
|
|
|
Mention, |
|
|
|
/// Someone reblogged one of the application client's statuses.
|
|
|
|
/// Someone reblogged one of the application client's statuses.
|
|
|
|
#[serde(rename = "reblog")] |
|
|
|
|
|
|
|
Reblog, |
|
|
|
Reblog, |
|
|
|
/// Someone favourited one of the application client's statuses.
|
|
|
|
/// Someone favourited one of the application client's statuses.
|
|
|
|
#[serde(rename = "favourite")] |
|
|
|
|
|
|
|
Favourite, |
|
|
|
Favourite, |
|
|
|
/// Someone followed the application client.
|
|
|
|
/// Someone followed the application client.
|
|
|
|
#[serde(rename = "follow")] |
|
|
|
|
|
|
|
Follow, |
|
|
|
Follow, |
|
|
|
} |
|
|
|
} |
|
|
|