type driven development, checks for email + name
This commit is contained in:
17
src/email_client.rs
Normal file
17
src/email_client.rs
Normal 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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user