mailslurp/models/
alias_projection.rs

1/*
2 * MailSlurp API
3 *
4 * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more.  ## Resources  - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5 *
6 * The version of the OpenAPI document: 6.5.2
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// AliasProjection : Representation of a alias
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AliasProjection {
17    #[serde(rename = "createdAt")]
18    pub created_at: String,
19    #[serde(rename = "emailAddress")]
20    pub email_address: String,
21    #[serde(rename = "id")]
22    pub id: String,
23    #[serde(rename = "inboxId")]
24    pub inbox_id: String,
25    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
26    pub name: Option<String>,
27    #[serde(rename = "updatedAt")]
28    pub updated_at: String,
29    #[serde(rename = "useThreads", skip_serializing_if = "Option::is_none")]
30    pub use_threads: Option<bool>,
31    #[serde(rename = "userId")]
32    pub user_id: String,
33}
34
35impl AliasProjection {
36    /// Representation of a alias
37    pub fn new(created_at: String, email_address: String, id: String, inbox_id: String, updated_at: String, user_id: String) -> AliasProjection {
38        AliasProjection {
39            created_at,
40            email_address,
41            id,
42            inbox_id,
43            name: None,
44            updated_at,
45            use_threads: None,
46            user_id,
47        }
48    }
49}
50
51