pub struct ConfigNotificationsUpdateSmtpRequest {Show 13 fields
pub author: Option<String>,
pub comment: Option<String>,
pub delete: Option<Vec<PbsConfigNotificationsInlineEnum3>>,
pub digest: Option<String>,
pub disable: Option<bool>,
pub from_address: Option<String>,
pub mailto: Option<Vec<String>>,
pub mailto_user: Option<Vec<String>>,
pub mode: Option<PbsConfigNotificationsModeEnum>,
pub password: Option<String>,
pub port: Option<i32>,
pub server: Option<String>,
pub username: Option<String>,
}Fields§
Author of the mail. Defaults to ‘Proxmox Backup Server ($hostname)’
comment: Option<String>Comment.
delete: Option<Vec<PbsConfigNotificationsInlineEnum3>>List of properties to delete.
digest: Option<String>Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications.
disable: Option<bool>Disable this target.
from_address: Option<String>From 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
password: Option<String>SMTP authentication password
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: Option<String>Host 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 ConfigNotificationsUpdateSmtpRequest
impl Clone for ConfigNotificationsUpdateSmtpRequest
Source§fn clone(&self) -> ConfigNotificationsUpdateSmtpRequest
fn clone(&self) -> ConfigNotificationsUpdateSmtpRequest
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 ConfigNotificationsUpdateSmtpRequest
impl Default for ConfigNotificationsUpdateSmtpRequest
Source§fn default() -> ConfigNotificationsUpdateSmtpRequest
fn default() -> ConfigNotificationsUpdateSmtpRequest
Source§impl<'de> Deserialize<'de> for ConfigNotificationsUpdateSmtpRequest
impl<'de> Deserialize<'de> for ConfigNotificationsUpdateSmtpRequest
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 ConfigNotificationsUpdateSmtpRequest
impl PartialEq for ConfigNotificationsUpdateSmtpRequest
Source§fn eq(&self, other: &ConfigNotificationsUpdateSmtpRequest) -> bool
fn eq(&self, other: &ConfigNotificationsUpdateSmtpRequest) -> bool
self and other values to be equal, and is used by ==.