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:
parent
08b7c501ac
commit
8f408ea4af
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user