MCPcopy Create free account
hub / github.com/dfinity/orbit / Notification

Class Notification

core/station/impl/src/models/notification.rs:16–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#[storable]
15#[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
16pub struct Notification {
17 pub id: NotificationId,
18 pub notification_type: NotificationType,
19 pub status: NotificationStatus,
20 /// The user that the notification is targeted to.
21 pub target_user_id: UserId,
22 /// The title of the notification set in a single locale.
23 pub title: String,
24 /// The message of the notification set in a single locale.
25 pub message: Option<String>,
26 pub created_timestamp: Timestamp,
27 pub last_modification_timestamp: Timestamp,
28}
29
30#[storable]
31#[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]

Callers 3

fromMethod · 0.50
fromMethod · 0.50
to_resourcesMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected