sova_notifications/events.rs
1//! Domain events emitted on the app [`EventBus`](sova_core::EventBus).
2
3use sova_core::Event;
4
5/// Fired at the end of [`crate::Notify::send`].
6#[derive(Debug, Clone)]
7pub struct NotificationSent {
8 pub channel: String,
9 pub event: String,
10 pub recipients: Vec<i64>,
11}
12
13impl Event for NotificationSent {
14 fn name(&self) -> &'static str {
15 "notifications.sent"
16 }
17}