pub trait Notification {
// Required method
fn notify<'life0, 'async_trait>(
&'life0 self,
data: NotificationData,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Trait for sending notifications
Implementers of this trait can send notifications with different delivery methods (email, SMS, push notification, etc.)