1use serde::Serialize;
2
3#[derive(Debug, Serialize)]
4pub struct Attachment<'a> {
5 pub content: Vec<u8>,
6 pub filename: &'a str,
7}
8
9#[derive(Debug, Serialize)]
10pub struct MailText<'a> {
11 pub from: &'a str,
12 pub to: Vec<&'a str>,
13 pub subject: &'a str,
14 pub text: &'a str,
15 pub attachments: Option<Vec<Attachment<'a>>>,
16}
17
18#[derive(Debug, Serialize)]
19pub struct MailHtml<'a> {
20 pub from: &'a str,
21 pub to: Vec<&'a str>,
22 pub subject: &'a str,
23 pub html: &'a str,
24 pub attachments: Option<Vec<Attachment<'a>>>,
25}