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
/*
* opensearch-client
*
* Rust Client for OpenSearch
*
* The version of the OpenAPI document: 3.1.0
* Contact: alberto.paro@gmail.com
* Generated by Paro OpenAPI Generator
*/
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SmtpAccount {
#[serde(rename = "host")]
pub host: String,
#[serde(rename = "method")]
pub method: String,
#[serde(rename = "from_address")]
pub from_address: String,
#[serde(rename = "port")]
pub port: u32,
}
impl SmtpAccount {
pub fn new(host: String, method: String, from_address: String, port: u32) -> SmtpAccount {
SmtpAccount {
host,
method,
from_address,
port,
}
}
}