Add email sketch.

This commit is contained in:
LukeMathWalker 2021-01-10 17:27:54 +00:00
parent 901942edef
commit e93d6b9955
2 changed files with 15 additions and 0 deletions

14
src/email_client.rs Normal file
View file

@ -0,0 +1,14 @@
use crate::domain::SubscriberEmail;
pub struct EmailClient;
impl EmailClient {
pub async fn send_email(
&self,
recipient: SubscriberEmail,
subject: &str,
content: &str,
) -> Result<(), String> {
todo!()
}
}

View file

@ -1,5 +1,6 @@
pub mod configuration;
pub mod domain;
pub mod email_client;
pub mod routes;
pub mod startup;
pub mod telemetry;