mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-09-30 07:11:59 +00:00
15 lines
261 B
Rust
15 lines
261 B
Rust
|
use crate::domain::SubscriberEmail;
|
||
|
|
||
|
pub struct EmailClient;
|
||
|
|
||
|
impl EmailClient {
|
||
|
pub async fn send_email(
|
||
|
&self,
|
||
|
recipient: SubscriberEmail,
|
||
|
subject: &str,
|
||
|
content: &str,
|
||
|
) -> Result<(), String> {
|
||
|
todo!()
|
||
|
}
|
||
|
}
|