sendinblue/
mailer.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Serialize, Deserialize, Default, Clone)]
4pub struct Mailer {
5  pub name: String,
6  pub email: String,
7}
8
9impl Mailer {
10  pub fn new<S>(name: S, email: S) -> Self
11  where
12    S: Into<String>,
13  {
14    Self {
15      name: name.into(),
16      email: email.into(),
17    }
18  }
19}