pub struct SmtpServiceBuilder { /* private fields */ }Expand description
SMTP service builder
Implementations§
Source§impl SmtpServiceBuilder
impl SmtpServiceBuilder
Sourcepub fn credentials(
self,
username: impl Into<String>,
password: impl Into<String>,
) -> Self
pub fn credentials( self, username: impl Into<String>, password: impl Into<String>, ) -> Self
Set credentials
Sourcepub fn hello_name(self, name: impl Into<String>) -> Self
pub fn hello_name(self, name: impl Into<String>) -> Self
Set hello name
Sourcepub fn build(self) -> EmailResult<SmtpEmailService>
pub fn build(self) -> EmailResult<SmtpEmailService>
Build SMTP service
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SmtpServiceBuilder
impl RefUnwindSafe for SmtpServiceBuilder
impl Send for SmtpServiceBuilder
impl Sync for SmtpServiceBuilder
impl Unpin for SmtpServiceBuilder
impl UnsafeUnpin for SmtpServiceBuilder
impl UnwindSafe for SmtpServiceBuilder
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