Skip to main content

Module notifier

Module notifier 

Source
Expand description

SMS and push notifications.

Structs§

MemoryTransport
Records every successful send for inspection in tests and local apps.
NotifierService
Newtype so transport trait objects can be stored in the container.
NullTransport
Discards every notification after validation (Symfony NullTransport analogue).
PushMessage
Push payload (device token + title + body).
RegisterDefaultNotifierPass
Seeds DEFAULT_NOTIFIER_SERVICE with a NullTransport when missing.
SmsMessage
SMS payload (phone + body).
SmsOnlyTransport
Rejects push; accepts SMS (useful when only an SMS vendor is wired).

Enums§

Channel
Delivery channel for a crate::Notification.
Notification
Outgoing notification before a transport sends it.
NotifierError
Failure while building or sending a notification.

Constants§

DEFAULT_NOTIFIER_SERVICE
Container id of the default notifier when registered by the pass.
NOTIFIER_TRANSPORT_TAG
Service tag applied to notifier transport definitions.

Traits§

Transport
Sends a Notification synchronously.