summaryrefslogtreecommitdiffstats
path: root/entities/src/notification.rs
diff options
context:
space:
mode:
Diffstat (limited to 'entities/src/notification.rs')
-rw-r--r--entities/src/notification.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/entities/src/notification.rs b/entities/src/notification.rs
index 9b972a2..a7d4176 100644
--- a/entities/src/notification.rs
+++ b/entities/src/notification.rs
@@ -17,7 +17,7 @@ pub struct Notification {
pub id: NotificationId,
/// The type of event that resulted in the notification..
#[serde(rename = "type")]
- pub notification_type: NotificationType,
+ pub notification_type: Type,
/// The timestamp of the notification.
#[serde(with = "iso8601")]
pub created_at: OffsetDateTime,
@@ -35,7 +35,7 @@ pub struct Notification {
/// The type of notification.
#[derive(Debug, Clone, Copy, Deserialize, Serialize, PartialEq, Eq, is_enum_variant)]
#[serde(rename_all = "snake_case")]
-pub enum NotificationType {
+pub enum Type {
/// Someone mentioned you in their status
Mention,
/// Someone you enabled notifications for has posted a status