mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-12-19 22:46:36 +00:00
Add email sketch.
This commit is contained in:
parent
901942edef
commit
e93d6b9955
2 changed files with 15 additions and 0 deletions
14
src/email_client.rs
Normal file
14
src/email_client.rs
Normal 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!()
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
pub mod configuration;
|
pub mod configuration;
|
||||||
pub mod domain;
|
pub mod domain;
|
||||||
|
pub mod email_client;
|
||||||
pub mod routes;
|
pub mod routes;
|
||||||
pub mod startup;
|
pub mod startup;
|
||||||
pub mod telemetry;
|
pub mod telemetry;
|
||||||
|
|
Loading…
Reference in a new issue