pub struct CreateDomainClaimOptions { /* private fields */ }Expand description
Details of a new DomainClaim.
Implementations§
Source§impl CreateDomainClaimOptions
impl CreateDomainClaimOptions
pub fn new(name: &str) -> Self
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
Trait Implementations§
Source§impl Clone for CreateDomainClaimOptions
impl Clone for CreateDomainClaimOptions
Source§fn clone(&self) -> CreateDomainClaimOptions
fn clone(&self) -> CreateDomainClaimOptions
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 CreateDomainClaimOptions
impl Debug for CreateDomainClaimOptions
Auto Trait Implementations§
impl Freeze for CreateDomainClaimOptions
impl RefUnwindSafe for CreateDomainClaimOptions
impl Send for CreateDomainClaimOptions
impl Sync for CreateDomainClaimOptions
impl Unpin for CreateDomainClaimOptions
impl UnsafeUnpin for CreateDomainClaimOptions
impl UnwindSafe for CreateDomainClaimOptions
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