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
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct AliasDto {
#[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
#[serde(rename = "emailAddress", skip_serializing_if = "Option::is_none")]
pub email_address: Option<String>,
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "inboxId", skip_serializing_if = "Option::is_none")]
pub inbox_id: Option<String>,
#[serde(rename = "isVerified", skip_serializing_if = "Option::is_none")]
pub is_verified: Option<bool>,
#[serde(rename = "maskedEmailAddress", skip_serializing_if = "Option::is_none")]
pub masked_email_address: Option<String>,
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
pub updated_at: Option<String>,
#[serde(rename = "useThreads", skip_serializing_if = "Option::is_none")]
pub use_threads: Option<bool>,
#[serde(rename = "userId")]
pub user_id: String,
}
impl AliasDto {
pub fn new(id: String, user_id: String) -> AliasDto {
AliasDto {
created_at: None,
email_address: None,
id,
inbox_id: None,
is_verified: None,
masked_email_address: None,
name: None,
updated_at: None,
use_threads: None,
user_id,
}
}
}