Skip to main content

Crate sova_notifications

Crate sova_notifications 

Source
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).
NotificationFilter
NotificationRow
NotificationSent
Fired at the end of crate::Notify::send.
NotificationService
App-state service installed by super::Notifications.
NotificationUser
Recipient marker on the request (or derived from CurrentUser when auth feature).
Notifications
Database notifications with named channels.
NotificationsMigrator
Notify
Fluent notification builder.

Enums§

Via
How a notification is delivered.

Traits§

NotifyExt
Request helpers.

Functions§

list_notifications
mark_all_read
mark_read
unread_count