#[non_exhaustive]pub struct NotifyEmailTypeBuilder { /* private fields */ }Expand description
A builder for NotifyEmailType.
Implementations§
source§impl NotifyEmailTypeBuilder
impl NotifyEmailTypeBuilder
sourcepub fn subject(self, input: impl Into<String>) -> Self
pub fn subject(self, input: impl Into<String>) -> Self
The email subject.
This field is required.sourcepub fn set_subject(self, input: Option<String>) -> Self
pub fn set_subject(self, input: Option<String>) -> Self
The email subject.
sourcepub fn get_subject(&self) -> &Option<String>
pub fn get_subject(&self) -> &Option<String>
The email subject.
sourcepub fn set_html_body(self, input: Option<String>) -> Self
pub fn set_html_body(self, input: Option<String>) -> Self
The email HTML body.
sourcepub fn get_html_body(&self) -> &Option<String>
pub fn get_html_body(&self) -> &Option<String>
The email HTML body.
sourcepub fn set_text_body(self, input: Option<String>) -> Self
pub fn set_text_body(self, input: Option<String>) -> Self
The email text body.
sourcepub fn get_text_body(&self) -> &Option<String>
pub fn get_text_body(&self) -> &Option<String>
The email text body.
sourcepub fn build(self) -> Result<NotifyEmailType, BuildError>
pub fn build(self) -> Result<NotifyEmailType, BuildError>
Consumes the builder and constructs a NotifyEmailType.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for NotifyEmailTypeBuilder
impl Clone for NotifyEmailTypeBuilder
source§fn clone(&self) -> NotifyEmailTypeBuilder
fn clone(&self) -> NotifyEmailTypeBuilder
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 NotifyEmailTypeBuilder
impl Debug for NotifyEmailTypeBuilder
source§impl Default for NotifyEmailTypeBuilder
impl Default for NotifyEmailTypeBuilder
source§fn default() -> NotifyEmailTypeBuilder
fn default() -> NotifyEmailTypeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for NotifyEmailTypeBuilder
impl PartialEq for NotifyEmailTypeBuilder
source§fn eq(&self, other: &NotifyEmailTypeBuilder) -> bool
fn eq(&self, other: &NotifyEmailTypeBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for NotifyEmailTypeBuilder
Auto Trait Implementations§
impl RefUnwindSafe for NotifyEmailTypeBuilder
impl Send for NotifyEmailTypeBuilder
impl Sync for NotifyEmailTypeBuilder
impl Unpin for NotifyEmailTypeBuilder
impl UnwindSafe for NotifyEmailTypeBuilder
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.