pub struct MailSettingsBuilder { /* fields omitted */ }
Builder pattern for creating MailSettings
Make sure you call build()
to consume this
builder and get the underlying MailSettings
Construct with default().
Adds the BCC setting to the MailSettings
struct. It will always be enabled if this is
called. Just specify the email address to BCC.
let builder = MailSettingsBuilder::default()
.bcc("bcc@example.com");
Turns on the flag for bypass_list_management in MailSettings
.
let builder = MailSettingsBuilder::default()
.bypass_list_management();
Adds a footer to MailSettings
text form is the optional first parameter, and html is the
second. Enabled flag is set to true when this method is called.
let builder = MailSettingsBuilder::default()
.footer(Some(String::from("text footer")), Some(String::from("<h1>HTML Footer</h1>")));
Enables the sandbox_mode flag for MailSettings
let builder = MailSettingsBuilder::default()
.sandbox_mode();
Configures the spam_check node for MailSettings
threshold: Option
post_to_url: Option
let builder = MailSettingsBuilder::default()
.spam_check(Some(5), Some(String::from("http://post_url")));
Consumes the MailSettingsBuilder
and returns the underlying MailSettings
let builder = MailSettingsBuilder::default()
.build();
Returns the "default value" for a type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static