filigree 0.4.1

Filigree web application framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use async_trait::async_trait;

use super::{EmailError, EmailService};
use crate::email::Email;

/// An email service that doesn't send emails. Can be useful when first starting out a project.
pub struct NoopEmailService {}

#[async_trait]
impl EmailService for NoopEmailService {
    async fn send(&self, _email: Email) -> Result<(), EmailError> {
        Ok(())
    }
}