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§
Trait Implementations§
source§impl Clone for SmtpInvalidCertsPolicy
impl Clone for SmtpInvalidCertsPolicy
source§fn clone(&self) -> SmtpInvalidCertsPolicy
fn clone(&self) -> SmtpInvalidCertsPolicy
Returns a copy 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 moreAuto Trait Implementations§
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