windmill_api/models/
test_smtp_request_smtp.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.555.2
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct TestSmtpRequestSmtp {
16    #[serde(rename = "host")]
17    pub host: String,
18    #[serde(rename = "username")]
19    pub username: String,
20    #[serde(rename = "password")]
21    pub password: String,
22    #[serde(rename = "port")]
23    pub port: i32,
24    #[serde(rename = "from")]
25    pub from: String,
26    #[serde(rename = "tls_implicit")]
27    pub tls_implicit: bool,
28    #[serde(rename = "disable_tls")]
29    pub disable_tls: bool,
30}
31
32impl TestSmtpRequestSmtp {
33    pub fn new(host: String, username: String, password: String, port: i32, from: String, tls_implicit: bool, disable_tls: bool) -> TestSmtpRequestSmtp {
34        TestSmtpRequestSmtp {
35            host,
36            username,
37            password,
38            port,
39            from,
40            tls_implicit,
41            disable_tls,
42        }
43    }
44}
45