Skip to main content

clientapi_pve/models/
cluster_notifications_create_sendmail_endpoint_request.rs

1/*
2 * Proxmox Virtual Environment API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
5 *
6 * The version of the OpenAPI document: 9.x
7 * 
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 ClusterNotificationsCreateSendmailEndpointRequest {
16
17    /// Author of the mail
18    #[serde(rename = "author", skip_serializing_if = "Option::is_none")]
19    pub author: Option<String>,
20
21    /// Comment
22    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
23    pub comment: Option<String>,
24
25    /// Disable this target
26    #[serde(rename = "disable", skip_serializing_if = "Option::is_none")]
27    pub disable: Option<models::PveBoolean>,
28
29    /// `From` address for the mail
30    #[serde(rename = "from-address", skip_serializing_if = "Option::is_none")]
31    pub from_address: Option<String>,
32
33    /// List of email recipients
34    #[serde(rename = "mailto", skip_serializing_if = "Option::is_none")]
35    pub mailto: Option<Vec<String>>,
36
37    /// List of users
38    #[serde(rename = "mailto-user", skip_serializing_if = "Option::is_none")]
39    pub mailto_user: Option<Vec<String>>,
40
41    /// The name of the endpoint.
42    #[serde(rename = "name")]
43    pub name: String,
44
45
46}
47
48impl ClusterNotificationsCreateSendmailEndpointRequest {
49    pub fn new(name: String) -> ClusterNotificationsCreateSendmailEndpointRequest {
50        ClusterNotificationsCreateSendmailEndpointRequest {
51            
52            author: None,
53            
54            comment: None,
55            
56            disable: None,
57            
58            from_address: None,
59            
60            mailto: None,
61            
62            mailto_user: None,
63            
64            name,
65            
66        }
67    }
68}
69
70