pub struct EmailConfig {
pub transport: EmailTransport,
pub from_email: String,
pub from_name: String,
pub smtp: EmailSmtpConfig,
pub mailersend: EmailMailerSendConfig,
}Expand description
Email delivery settings.
Fields§
§transport: EmailTransportSelected transport.
from_email: StringSender address.
from_name: StringSender display name.
smtp: EmailSmtpConfigSMTP-specific settings.
mailersend: EmailMailerSendConfigMailerSend-specific settings.
Implementations§
Source§impl EmailConfig
impl EmailConfig
Sourcepub fn mailersend(
from_email: impl Into<String>,
from_name: impl Into<String>,
) -> Self
pub fn mailersend( from_email: impl Into<String>, from_name: impl Into<String>, ) -> Self
Creates MailerSend delivery defaults for an application-owned sender.
Sourcepub fn smtp(
from_email: impl Into<String>,
from_name: impl Into<String>,
host: impl Into<String>,
port: u16,
security: EmailSmtpSecurity,
) -> Self
pub fn smtp( from_email: impl Into<String>, from_name: impl Into<String>, host: impl Into<String>, port: u16, security: EmailSmtpSecurity, ) -> Self
Creates SMTP delivery defaults for an application-owned sender.
Sourcepub fn is_configured(&self) -> bool
pub fn is_configured(&self) -> bool
Reports whether email delivery settings are present.
Trait Implementations§
Source§impl Clone for EmailConfig
impl Clone for EmailConfig
Source§impl Debug for EmailConfig
impl Debug for EmailConfig
Source§impl Default for EmailConfig
impl Default for EmailConfig
impl Eq for EmailConfig
Source§impl PartialEq for EmailConfig
impl PartialEq for EmailConfig
impl StructuralPartialEq for EmailConfig
Auto Trait Implementations§
impl Freeze for EmailConfig
impl RefUnwindSafe for EmailConfig
impl Send for EmailConfig
impl Sync for EmailConfig
impl Unpin for EmailConfig
impl UnsafeUnpin for EmailConfig
impl UnwindSafe for EmailConfig
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