1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReplyToEmailOptions {
#[serde(rename = "attachments", skip_serializing_if = "Option::is_none")]
pub attachments: Option<Vec<String>>,
#[serde(rename = "body", skip_serializing_if = "Option::is_none")]
pub body: Option<String>,
#[serde(rename = "charset", skip_serializing_if = "Option::is_none")]
pub charset: Option<String>,
#[serde(rename = "from", skip_serializing_if = "Option::is_none")]
pub from: Option<String>,
#[serde(rename = "isHTML", skip_serializing_if = "Option::is_none")]
pub is_html: Option<bool>,
#[serde(rename = "replyTo", skip_serializing_if = "Option::is_none")]
pub reply_to: Option<String>,
#[serde(rename = "sendStrategy", skip_serializing_if = "Option::is_none")]
pub send_strategy: Option<SendStrategy>,
#[serde(rename = "template", skip_serializing_if = "Option::is_none")]
pub template: Option<String>,
#[serde(rename = "templateVariables", skip_serializing_if = "Option::is_none")]
pub template_variables: Option<serde_json::Value>,
#[serde(rename = "useInboxName", skip_serializing_if = "Option::is_none")]
pub use_inbox_name: Option<bool>,
}
impl ReplyToEmailOptions {
pub fn new() -> ReplyToEmailOptions {
ReplyToEmailOptions {
attachments: None,
body: None,
charset: None,
from: None,
is_html: None,
reply_to: None,
send_strategy: None,
template: None,
template_variables: None,
use_inbox_name: None,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum SendStrategy {
#[serde(rename = "SINGLE_MESSAGE")]
SINGLEMESSAGE,
}