Expand description
Database notifications with named channels, ACL, optional WS / mail.
ⓘ
app.install(
Notifications::new()
.channel(Channel::new("orders").publish("notifications.orders.publish"))
.mount("/notifications")
.guard(Fortify::guard())
);
Notify::to(user_id).channel("orders").event("order.shipped").title("Shipped").send(&req).await?;Structs§
- Channel
- Delivery channel config (code-defined, not a DB table).
- Notification
Filter - Notification
Row - Notification
Sent - Fired at the end of
crate::Notify::send. - Notification
Service - App-state service installed by
super::Notifications. - Notification
User - Recipient marker on the request (or derived from CurrentUser when
authfeature). - Notifications
- Database notifications with named channels.
- Notifications
Migrator - Notify
- Fluent notification builder.
Enums§
- Via
- How a notification is delivered.
Traits§
- Notify
Ext - Request helpers.