notify: add getter for notification timestamp

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
Lukas Wagner 2024-04-23 13:51:51 +02:00 committed by Thomas Lamprecht
parent 08b7c501ac
commit 8f408ea4af

View File

@ -261,6 +261,11 @@ impl Notification {
pub fn id(&self) -> &Uuid {
&self.id
}
/// Return the notification's timestamp
pub fn timestamp(&self) -> i64 {
self.metadata.timestamp
}
}
/// Notification configuration