pub struct ConfigNotificationsGetSmtpResponseDataInner {
pub author: Option<String>,
pub comment: Option<String>,
pub disable: Option<bool>,
pub from_address: String,
pub mailto: Option<Vec<String>>,
pub mailto_user: Option<Vec<String>>,
pub mode: Option<PbsConfigNotificationsModeEnum>,
pub name: String,
pub origin: Option<PbsOriginEnum>,
pub port: Option<i32>,
pub server: String,
pub username: Option<String>,
}Fields§
Author of the mail. Defaults to ‘Proxmox Backup Server ($hostname)’
comment: Option<String>Comment.
disable: Option<bool>Disable this target.
from_address: StringFrom address for the mail. SMTP relays might require that this address is owned by the user in order to avoid spoofing. The From header in the email will be set to $author <$from-address>.
mailto: Option<Vec<String>>Mail address to send a mail to.
mailto_user: Option<Vec<String>>Users to send a mail to. The email address of the user will be looked up in users.cfg.
mode: Option<PbsConfigNotificationsModeEnum>Connection security
name: StringName schema for targets and matchers
origin: Option<PbsOriginEnum>The origin of a notification configuration entry.
port: Option<i32>The port to connect to. If not set, the used port defaults to 25 (insecure), 465 (tls) or 587 (starttls), depending on the value of mode
server: StringHost name or IP of the SMTP relay.
username: Option<String>Username to use during authentication. If no username is set, no authentication will be performed. The PLAIN and LOGIN authentication methods are supported
Implementations§
Trait Implementations§
Source§impl Clone for ConfigNotificationsGetSmtpResponseDataInner
impl Clone for ConfigNotificationsGetSmtpResponseDataInner
Source§fn clone(&self) -> ConfigNotificationsGetSmtpResponseDataInner
fn clone(&self) -> ConfigNotificationsGetSmtpResponseDataInner
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ConfigNotificationsGetSmtpResponseDataInner
impl Default for ConfigNotificationsGetSmtpResponseDataInner
Source§fn default() -> ConfigNotificationsGetSmtpResponseDataInner
fn default() -> ConfigNotificationsGetSmtpResponseDataInner
Source§impl<'de> Deserialize<'de> for ConfigNotificationsGetSmtpResponseDataInner
impl<'de> Deserialize<'de> for ConfigNotificationsGetSmtpResponseDataInner
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ConfigNotificationsGetSmtpResponseDataInner
impl PartialEq for ConfigNotificationsGetSmtpResponseDataInner
Source§fn eq(&self, other: &ConfigNotificationsGetSmtpResponseDataInner) -> bool
fn eq(&self, other: &ConfigNotificationsGetSmtpResponseDataInner) -> bool
self and other values to be equal, and is used by ==.