sova-notifications 0.1.5

Database notifications with channels, ACL, optional WS/mail
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Domain events emitted on the app [`EventBus`](sova_core::EventBus).

use sova_core::Event;

/// Fired at the end of [`crate::Notify::send`].
#[derive(Debug, Clone)]
pub struct NotificationSent {
    pub channel: String,
    pub event: String,
    pub recipients: Vec<i64>,
}

impl Event for NotificationSent {
    fn name(&self) -> &'static str {
        "notifications.sent"
    }
}