Skip to main content

RustackSes

Struct RustackSes 

Source
pub struct RustackSes { /* private fields */ }
Expand description

Main SES provider implementing all operations.

Implementations§

Source§

impl RustackSes

Source

pub fn new(config: SesConfig) -> Self

Create a new SES provider with the given configuration.

Source

pub fn email_store(&self) -> &Arc<EmailStore>

Get a reference to the email store for retrospection.

Source

pub fn config(&self) -> &SesConfig

Get a reference to the configuration.

Source

pub fn verify_email_identity( &self, input: VerifyEmailIdentityInput, ) -> Result<VerifyEmailIdentityResponse, SesError>

Verify an email identity.

Source

pub fn verify_domain_identity( &self, input: VerifyDomainIdentityInput, ) -> Result<VerifyDomainIdentityResponse, SesError>

Verify a domain identity.

Source

pub fn list_identities( &self, input: ListIdentitiesInput, ) -> Result<ListIdentitiesResponse, SesError>

List all identities, optionally filtered by type.

Source

pub fn delete_identity( &self, input: DeleteIdentityInput, ) -> Result<DeleteIdentityResponse, SesError>

Delete an identity.

Source

pub fn get_identity_verification_attributes( &self, input: GetIdentityVerificationAttributesInput, ) -> Result<GetIdentityVerificationAttributesResponse, SesError>

Get verification attributes for identities.

Source

pub fn verify_email_address( &self, input: VerifyEmailAddressInput, ) -> Result<(), SesError>

Legacy API: verify an email address.

Source

pub fn delete_verified_email_address( &self, input: DeleteVerifiedEmailAddressInput, ) -> Result<(), SesError>

Legacy API: delete a verified email address.

Source

pub fn list_verified_email_addresses( &self, ) -> Result<ListVerifiedEmailAddressesResponse, SesError>

Legacy API: list verified email addresses.

Source

pub fn send_email( &self, input: SendEmailInput, ) -> Result<SendEmailResponse, SesError>

Send an email.

Source

pub fn send_raw_email( &self, input: SendRawEmailInput, ) -> Result<SendRawEmailResponse, SesError>

Send a raw MIME email.

Source

pub fn get_send_quota(&self) -> Result<GetSendQuotaResponse, SesError>

Get send quota.

Source

pub fn get_send_statistics(&self) -> Result<GetSendStatisticsResponse, SesError>

Get send statistics.

Source

pub fn create_template( &self, input: CreateTemplateInput, ) -> Result<CreateTemplateResponse, SesError>

Create a template.

Source

pub fn get_template( &self, input: GetTemplateInput, ) -> Result<GetTemplateResponse, SesError>

Get a template.

Source

pub fn update_template( &self, input: UpdateTemplateInput, ) -> Result<UpdateTemplateResponse, SesError>

Update a template.

Source

pub fn delete_template( &self, input: DeleteTemplateInput, ) -> Result<DeleteTemplateResponse, SesError>

Delete a template.

Source

pub fn list_templates( &self, _input: ListTemplatesInput, ) -> Result<ListTemplatesResponse, SesError>

List templates.

Source

pub fn send_templated_email( &self, input: SendTemplatedEmailInput, ) -> Result<SendTemplatedEmailResponse, SesError>

Send a templated email.

Source

pub fn create_configuration_set( &self, input: CreateConfigurationSetInput, ) -> Result<CreateConfigurationSetResponse, SesError>

Create a configuration set.

Source

pub fn delete_configuration_set( &self, input: DeleteConfigurationSetInput, ) -> Result<DeleteConfigurationSetResponse, SesError>

Delete a configuration set.

Source

pub fn describe_configuration_set( &self, input: DescribeConfigurationSetInput, ) -> Result<DescribeConfigurationSetResponse, SesError>

Describe a configuration set.

Source

pub fn list_configuration_sets( &self, _input: ListConfigurationSetsInput, ) -> Result<ListConfigurationSetsResponse, SesError>

List configuration sets.

Source

pub fn create_configuration_set_event_destination( &self, input: CreateConfigurationSetEventDestinationInput, ) -> Result<CreateConfigurationSetEventDestinationResponse, SesError>

Create a configuration set event destination.

Source

pub fn update_configuration_set_event_destination( &self, input: UpdateConfigurationSetEventDestinationInput, ) -> Result<UpdateConfigurationSetEventDestinationResponse, SesError>

Update a configuration set event destination.

Source

pub fn delete_configuration_set_event_destination( &self, input: DeleteConfigurationSetEventDestinationInput, ) -> Result<DeleteConfigurationSetEventDestinationResponse, SesError>

Delete a configuration set event destination.

Source

pub fn create_receipt_rule_set( &self, input: CreateReceiptRuleSetInput, ) -> Result<CreateReceiptRuleSetResponse, SesError>

Create a receipt rule set.

Source

pub fn delete_receipt_rule_set( &self, input: DeleteReceiptRuleSetInput, ) -> Result<DeleteReceiptRuleSetResponse, SesError>

Delete a receipt rule set.

Source

pub fn create_receipt_rule( &self, input: CreateReceiptRuleInput, ) -> Result<CreateReceiptRuleResponse, SesError>

Create a receipt rule.

Source

pub fn delete_receipt_rule( &self, input: DeleteReceiptRuleInput, ) -> Result<DeleteReceiptRuleResponse, SesError>

Delete a receipt rule.

Source

pub fn describe_receipt_rule_set( &self, input: DescribeReceiptRuleSetInput, ) -> Result<DescribeReceiptRuleSetResponse, SesError>

Describe a receipt rule set.

Source

pub fn clone_receipt_rule_set( &self, input: CloneReceiptRuleSetInput, ) -> Result<CloneReceiptRuleSetResponse, SesError>

Clone a receipt rule set.

Source

pub fn describe_active_receipt_rule_set( &self, _input: DescribeActiveReceiptRuleSetInput, ) -> Result<DescribeActiveReceiptRuleSetResponse, SesError>

Describe the active receipt rule set.

Source

pub fn set_active_receipt_rule_set( &self, input: SetActiveReceiptRuleSetInput, ) -> Result<SetActiveReceiptRuleSetResponse, SesError>

Set the active receipt rule set.

Source

pub fn set_identity_notification_topic( &self, input: SetIdentityNotificationTopicInput, ) -> Result<SetIdentityNotificationTopicResponse, SesError>

Set identity notification topic.

Source

pub fn set_identity_feedback_forwarding_enabled( &self, input: SetIdentityFeedbackForwardingEnabledInput, ) -> Result<SetIdentityFeedbackForwardingEnabledResponse, SesError>

Set identity feedback forwarding enabled.

Source

pub fn get_identity_notification_attributes( &self, input: GetIdentityNotificationAttributesInput, ) -> Result<GetIdentityNotificationAttributesResponse, SesError>

Get identity notification attributes.

Source

pub fn verify_domain_dkim( &self, input: VerifyDomainDkimInput, ) -> Result<VerifyDomainDkimResponse, SesError>

Verify domain DKIM.

Source

pub fn get_identity_dkim_attributes( &self, input: GetIdentityDkimAttributesInput, ) -> Result<GetIdentityDkimAttributesResponse, SesError>

Get identity DKIM attributes.

Source

pub fn set_identity_mail_from_domain( &self, input: SetIdentityMailFromDomainInput, ) -> Result<SetIdentityMailFromDomainResponse, SesError>

Set identity mail-from domain.

Source

pub fn get_identity_mail_from_domain_attributes( &self, input: GetIdentityMailFromDomainAttributesInput, ) -> Result<GetIdentityMailFromDomainAttributesResponse, SesError>

Get identity mail-from domain attributes.

Source

pub fn get_identity_policies( &self, input: GetIdentityPoliciesInput, ) -> Result<GetIdentityPoliciesResponse, SesError>

Get identity policies.

Source

pub fn put_identity_policy( &self, input: PutIdentityPolicyInput, ) -> Result<PutIdentityPolicyResponse, SesError>

Put (create or update) an identity policy.

Source

pub fn delete_identity_policy( &self, input: DeleteIdentityPolicyInput, ) -> Result<DeleteIdentityPolicyResponse, SesError>

Delete an identity policy.

Source

pub fn list_identity_policies( &self, input: ListIdentityPoliciesInput, ) -> Result<ListIdentityPoliciesResponse, SesError>

List identity policy names.

Trait Implementations§

Source§

impl Debug for RustackSes

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more