pub enum MailerConfiguration {
Outlook {
tenant: String,
app_guid: String,
secret: Secret<String>,
},
Smtp {
host: String,
port: u16,
invalid_certs: SmtpInvalidCertsPolicy,
user: String,
password: Secret<String>,
},
}Expand description
Mailer configuration helper, which can be used with clap.
Variants§
Trait Implementations§
source§impl Clone for MailerConfiguration
impl Clone for MailerConfiguration
source§fn clone(&self) -> MailerConfiguration
fn clone(&self) -> MailerConfiguration
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 MailerConfiguration
impl Send for MailerConfiguration
impl Sync for MailerConfiguration
impl Unpin for MailerConfiguration
impl UnwindSafe for MailerConfiguration
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