pub struct EmailBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> EmailBuilder<S>
impl<S: State> EmailBuilder<S>
Sourcepub fn build(self) -> Emailwhere
S: IsComplete,
pub fn build(self) -> Emailwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn domains(self, value: Vec<String>) -> EmailBuilder<SetDomains<S>>where
S::Domains: IsUnset,
pub fn domains(self, value: Vec<String>) -> EmailBuilder<SetDomains<S>>where
S::Domains: IsUnset,
Optional (Some / Option setters).
Default: <Vec<String> as Default>::default().
Seed mail domains provisioned at deploy time (one SES identity each).
Useful for day-0 bootstrap and products with a static domain set.
May be empty (the default): products that create and verify domains
dynamically should manage identities at runtime through the
email/manage-identities grant instead of listing them here.
Sourcepub fn maybe_domains(
self,
value: Option<Vec<String>>,
) -> EmailBuilder<SetDomains<S>>where
S::Domains: IsUnset,
pub fn maybe_domains(
self,
value: Option<Vec<String>>,
) -> EmailBuilder<SetDomains<S>>where
S::Domains: IsUnset,
Optional (Some / Option setters).
Default: <Vec<String> as Default>::default().
Seed mail domains provisioned at deploy time (one SES identity each).
Useful for day-0 bootstrap and products with a static domain set.
May be empty (the default): products that create and verify domains
dynamically should manage identities at runtime through the
email/manage-identities grant instead of listing them here.
Sourcepub fn inbound(self, value: EmailInbound) -> EmailBuilder<SetInbound<S>>where
S::Inbound: IsUnset,
pub fn inbound(self, value: EmailInbound) -> EmailBuilder<SetInbound<S>>where
S::Inbound: IsUnset,
Sourcepub fn maybe_inbound(
self,
value: Option<EmailInbound>,
) -> EmailBuilder<SetInbound<S>>where
S::Inbound: IsUnset,
pub fn maybe_inbound(
self,
value: Option<EmailInbound>,
) -> EmailBuilder<SetInbound<S>>where
S::Inbound: IsUnset,
Sourcepub fn events(self, value: EmailEvents) -> EmailBuilder<SetEvents<S>>where
S::Events: IsUnset,
pub fn events(self, value: EmailEvents) -> EmailBuilder<SetEvents<S>>where
S::Events: IsUnset,
Optional (Some / Option setters).
Optional event configuration: send / delivery / bounce / complaint /
delivery-delay / reject events are delivered to the linked Queue. On
AWS, when inbound is also configured, that Queue additionally
receives SES Received notifications containing the envelope
recipients, receipt verdicts, and inbound Storage object key.
Sourcepub fn maybe_events(
self,
value: Option<EmailEvents>,
) -> EmailBuilder<SetEvents<S>>where
S::Events: IsUnset,
pub fn maybe_events(
self,
value: Option<EmailEvents>,
) -> EmailBuilder<SetEvents<S>>where
S::Events: IsUnset,
Optional (Some / Option setters).
Optional event configuration: send / delivery / bounce / complaint /
delivery-delay / reject events are delivered to the linked Queue. On
AWS, when inbound is also configured, that Queue additionally
receives SES Received notifications containing the envelope
recipients, receipt verdicts, and inbound Storage object key.