diff --git a/src/repository/notification.rs b/src/repository/notification.rs index b02221ab617328df41a9c1e509c5d44010f39a15..dff83566114d448893555b076197193ecb4aa4a5 100644 --- a/src/repository/notification.rs +++ b/src/repository/notification.rs @@ -16,5 +16,11 @@ impl NotificationRepository { NOTIFICATIONS.write().unwrap() .push(notification.clone()); return notification; - } + } + + pub fn list_all_as_string() -> Vec<String> { + return NOTIFICATIONS.read().unwrap() + .iter().map(|f| format!("{}", f.clone())).collect(); +} + }