Skip to main content

clientapi_pve/models/
cluster_notifications_get_sendmail_endpoints_response_data_inner.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 ClusterNotificationsGetSendmailEndpointsResponseDataInner {
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    /// Show if this entry was created by a user or was built-in
46    #[serde(rename = "origin")]
47    pub origin: models::PveOriginEnum,
48
49
50}
51
52impl ClusterNotificationsGetSendmailEndpointsResponseDataInner {
53    pub fn new(name: String, origin: models::PveOriginEnum) -> ClusterNotificationsGetSendmailEndpointsResponseDataInner {
54        ClusterNotificationsGetSendmailEndpointsResponseDataInner {
55            
56            author: None,
57            
58            comment: None,
59            
60            disable: None,
61            
62            from_address: None,
63            
64            mailto: None,
65            
66            mailto_user: None,
67            
68            name,
69            
70            origin,
71            
72        }
73    }
74}
75
76