lemmy_db_views_notification 1.0.0-test-fix-publish-3

A link aggregator for the fediverse
Documentation
1
2
3
4
5
6
7
8
9
10
11
use lemmy_db_schema::newtypes::NotificationId;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize, Clone, Copy, Default, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]
#[cfg_attr(feature = "ts-rs", ts(optional_fields, export))]
/// Mark a comment reply as read.
pub struct MarkNotificationAsRead {
  pub notification_id: NotificationId,
  pub read: bool,
}