pub enum SmtpInvalidCertsPolicy {
Allow,
Deny,
}Expand description
Pass to SmtpMailer::new to either allow or deny invalid SMTP certificates.
This option allows to perform tests or local development work against SMTP development servers like MailHog or MailPit, while using a self-signed certificate.
Never use SmtpInvalidCertsPolicy::Allow in production!
Variants§
Allow
Allow connecting to SMTP servers with invalid TLS certificates.
Do not use in production!
Deny
Deny connecting to SMTP servers with invalid TLS certificates.
This variant is the Default.
Trait Implementations§
Source§impl Clone for SmtpInvalidCertsPolicy
impl Clone for SmtpInvalidCertsPolicy
Source§fn clone(&self) -> SmtpInvalidCertsPolicy
fn clone(&self) -> SmtpInvalidCertsPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SmtpInvalidCertsPolicy
impl Debug for SmtpInvalidCertsPolicy
Source§impl Default for SmtpInvalidCertsPolicy
impl Default for SmtpInvalidCertsPolicy
Source§fn default() -> SmtpInvalidCertsPolicy
fn default() -> SmtpInvalidCertsPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SmtpInvalidCertsPolicy
impl RefUnwindSafe for SmtpInvalidCertsPolicy
impl Send for SmtpInvalidCertsPolicy
impl Sync for SmtpInvalidCertsPolicy
impl Unpin for SmtpInvalidCertsPolicy
impl UnwindSafe for SmtpInvalidCertsPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more