mailslurp/models/email_text_lines_result.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/// EmailTextLinesResult : Parsed text of an email
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EmailTextLinesResult {
17 #[serde(rename = "body")]
18 pub body: String,
19 #[serde(rename = "lines")]
20 pub lines: Vec<String>,
21}
22
23impl EmailTextLinesResult {
24 /// Parsed text of an email
25 pub fn new(body: String, lines: Vec<String>) -> EmailTextLinesResult {
26 EmailTextLinesResult {
27 body,
28 lines,
29 }
30 }
31}
32
33