#[non_exhaustive]pub struct EmailSettingsBuilder { /* private fields */ }
Expand description
A builder for EmailSettings
.
Implementations§
source§impl EmailSettingsBuilder
impl EmailSettingsBuilder
sourcepub fn email_message(self, input: impl Into<String>) -> Self
pub fn email_message(self, input: impl Into<String>) -> Self
The contents of the email message.
sourcepub fn set_email_message(self, input: Option<String>) -> Self
pub fn set_email_message(self, input: Option<String>) -> Self
The contents of the email message.
sourcepub fn get_email_message(&self) -> &Option<String>
pub fn get_email_message(&self) -> &Option<String>
The contents of the email message.
sourcepub fn email_subject(self, input: impl Into<String>) -> Self
pub fn email_subject(self, input: impl Into<String>) -> Self
The contents of the subject line of the email message.
sourcepub fn set_email_subject(self, input: Option<String>) -> Self
pub fn set_email_subject(self, input: Option<String>) -> Self
The contents of the subject line of the email message.
sourcepub fn get_email_subject(&self) -> &Option<String>
pub fn get_email_subject(&self) -> &Option<String>
The contents of the subject line of the email message.
sourcepub fn build(self) -> EmailSettings
pub fn build(self) -> EmailSettings
Consumes the builder and constructs a EmailSettings
.
Trait Implementations§
source§impl Clone for EmailSettingsBuilder
impl Clone for EmailSettingsBuilder
source§fn clone(&self) -> EmailSettingsBuilder
fn clone(&self) -> EmailSettingsBuilder
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 moresource§impl Debug for EmailSettingsBuilder
impl Debug for EmailSettingsBuilder
source§impl Default for EmailSettingsBuilder
impl Default for EmailSettingsBuilder
source§fn default() -> EmailSettingsBuilder
fn default() -> EmailSettingsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for EmailSettingsBuilder
impl PartialEq for EmailSettingsBuilder
source§fn eq(&self, other: &EmailSettingsBuilder) -> bool
fn eq(&self, other: &EmailSettingsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EmailSettingsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for EmailSettingsBuilder
impl Send for EmailSettingsBuilder
impl Sync for EmailSettingsBuilder
impl Unpin for EmailSettingsBuilder
impl UnwindSafe for EmailSettingsBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.