type driven development, checks for email + name

This commit is contained in:
Andre Heber
2024-02-20 23:42:51 +01:00
parent ef4040aa13
commit e457729f61
10 changed files with 327 additions and 134 deletions

17
src/email_client.rs Normal file
View File

@ -0,0 +1,17 @@
use crate::domain::SubscriberEmail;
pub struct EmailClient {
sender: SubscriberEmail,
}
impl EmailClient {
pub async fn send_email(
&self,
recipient: SubscriberEmail,
subject: &str,
html_content: &str,
text_content: &str,
) -> Result<(), String> {
todo!("send_email not implemented")
}
}