pub struct CreateDomainOptions { /* private fields */ }Expand description
Details of a new Domain.
Implementations§
Source§impl CreateDomainOptions
impl CreateDomainOptions
Sourcepub fn new(name: &str) -> Self
pub fn new(name: &str) -> Self
Creates a new CreateDomainOptions.
name: The name of the domain you want to create.
Sourcepub fn with_region(self, region: impl Into<Region>) -> Self
pub fn with_region(self, region: impl Into<Region>) -> Self
The region where the email will be sent from.
Sourcepub fn with_custom_return_path(
self,
custom_return_path: impl Into<String>,
) -> Self
pub fn with_custom_return_path( self, custom_return_path: impl Into<String>, ) -> Self
For advanced use cases, choose a subdomain for the Return-Path address.
The custom return path is used for SPF authentication, DMARC alignment, and handling
bounced emails. Defaults to send (i.e., send.yourdomain.tld). Avoid setting values
that could undermine credibility (e.g. testing), as they may be exposed to recipients.
pub fn with_open_tracking(self, open_tracking: bool) -> Self
pub fn with_click_tracking(self, click_tracking: bool) -> Self
pub fn with_tracking_subdomain( self, tracking_subdomain: impl Into<String>, ) -> Self
pub fn with_tls(self, tls: Tls) -> Self
pub fn with_capabilities(self, capabilities: Value) -> Self
Trait Implementations§
Source§impl Clone for CreateDomainOptions
impl Clone for CreateDomainOptions
Source§fn clone(&self) -> CreateDomainOptions
fn clone(&self) -> CreateDomainOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateDomainOptions
impl Debug for CreateDomainOptions
Auto Trait Implementations§
impl Freeze for CreateDomainOptions
impl RefUnwindSafe for CreateDomainOptions
impl Send for CreateDomainOptions
impl Sync for CreateDomainOptions
impl Unpin for CreateDomainOptions
impl UnsafeUnpin for CreateDomainOptions
impl UnwindSafe for CreateDomainOptions
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