mailslurp/models/validation_dto.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/// ValidationDto : Response object for email validation operation
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ValidationDto {
17 /// ID of the email validated
18 #[serde(rename = "emailId", skip_serializing_if = "Option::is_none")]
19 pub email_id: Option<String>,
20 #[serde(rename = "html", skip_serializing_if = "Option::is_none")]
21 pub html: Option<Box<crate::models::HtmlValidationResult>>,
22}
23
24impl ValidationDto {
25 /// Response object for email validation operation
26 pub fn new() -> ValidationDto {
27 ValidationDto {
28 email_id: None,
29 html: None,
30 }
31 }
32}
33
34