Struct aws_sdk_sesv2::Client

source ·
pub struct Client { /* private fields */ }
Expand description

Client for Amazon Simple Email Service

Client for invoking operations on Amazon Simple Email Service. Each operation on Amazon Simple Email Service is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

§Constructing a Client

A Config is required to construct a client. For most use cases, the aws-config crate should be used to automatically resolve this config using aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared across multiple different AWS SDK clients. This config resolution process can be customized by calling aws_config::from_env() instead, which returns a ConfigLoader that uses the builder pattern to customize the default config.

In the simplest case, creating a client looks as follows:

let config = aws_config::load_from_env().await;
let client = aws_sdk_sesv2::Client::new(&config);

Occasionally, SDKs may have additional service-specific values that can be set on the Config that is absent from SdkConfig, or slightly different settings for a specific client may be desired. The Config struct implements From<&SdkConfig>, so setting these specific settings can be done as follows:

let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_sesv2::config::Builder::from(&sdk_config)
    .some_service_specific_setting("value")
    .build();

See the aws-config docs and Config for more information on customizing configuration.

Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.

§Using the Client

A client has a function for every operation that can be performed by the service. For example, the CancelExportJob operation has a Client::cancel_export_job, function which returns a builder for that operation. The fluent builder ultimately has a send() function that returns an async future that returns a result, as illustrated below:

let result = client.cancel_export_job()
    .job_id("example")
    .send()
    .await;

The underlying HTTP requests that get made by this can be modified with the customize_operation function on the fluent builder. See the customize module for more information.

Implementations§

source§

impl Client

source

pub fn batch_get_metric_data(&self) -> BatchGetMetricDataFluentBuilder

Constructs a fluent builder for the BatchGetMetricData operation.

source§

impl Client

source

pub fn cancel_export_job(&self) -> CancelExportJobFluentBuilder

Constructs a fluent builder for the CancelExportJob operation.

source§

impl Client

source

pub fn create_configuration_set(&self) -> CreateConfigurationSetFluentBuilder

Constructs a fluent builder for the CreateConfigurationSet operation.

source§

impl Client

source

pub fn create_configuration_set_event_destination( &self ) -> CreateConfigurationSetEventDestinationFluentBuilder

Constructs a fluent builder for the CreateConfigurationSetEventDestination operation.

source§

impl Client

source

pub fn create_contact(&self) -> CreateContactFluentBuilder

Constructs a fluent builder for the CreateContact operation.

source§

impl Client

source

pub fn create_contact_list(&self) -> CreateContactListFluentBuilder

Constructs a fluent builder for the CreateContactList operation.

source§

impl Client

source

pub fn create_custom_verification_email_template( &self ) -> CreateCustomVerificationEmailTemplateFluentBuilder

Constructs a fluent builder for the CreateCustomVerificationEmailTemplate operation.

source§

impl Client

source

pub fn create_dedicated_ip_pool(&self) -> CreateDedicatedIpPoolFluentBuilder

Constructs a fluent builder for the CreateDedicatedIpPool operation.

source§

impl Client

source

pub fn create_deliverability_test_report( &self ) -> CreateDeliverabilityTestReportFluentBuilder

Constructs a fluent builder for the CreateDeliverabilityTestReport operation.

source§

impl Client

source

pub fn create_email_identity(&self) -> CreateEmailIdentityFluentBuilder

Constructs a fluent builder for the CreateEmailIdentity operation.

source§

impl Client

source

pub fn create_email_identity_policy( &self ) -> CreateEmailIdentityPolicyFluentBuilder

Constructs a fluent builder for the CreateEmailIdentityPolicy operation.

source§

impl Client

source

pub fn create_email_template(&self) -> CreateEmailTemplateFluentBuilder

Constructs a fluent builder for the CreateEmailTemplate operation.

source§

impl Client

source

pub fn create_export_job(&self) -> CreateExportJobFluentBuilder

Constructs a fluent builder for the CreateExportJob operation.

source§

impl Client

source

pub fn create_import_job(&self) -> CreateImportJobFluentBuilder

Constructs a fluent builder for the CreateImportJob operation.

source§

impl Client

source

pub fn delete_configuration_set(&self) -> DeleteConfigurationSetFluentBuilder

Constructs a fluent builder for the DeleteConfigurationSet operation.

source§

impl Client

source

pub fn delete_configuration_set_event_destination( &self ) -> DeleteConfigurationSetEventDestinationFluentBuilder

Constructs a fluent builder for the DeleteConfigurationSetEventDestination operation.

source§

impl Client

source

pub fn delete_contact(&self) -> DeleteContactFluentBuilder

Constructs a fluent builder for the DeleteContact operation.

source§

impl Client

source

pub fn delete_contact_list(&self) -> DeleteContactListFluentBuilder

Constructs a fluent builder for the DeleteContactList operation.

source§

impl Client

source

pub fn delete_custom_verification_email_template( &self ) -> DeleteCustomVerificationEmailTemplateFluentBuilder

Constructs a fluent builder for the DeleteCustomVerificationEmailTemplate operation.

source§

impl Client

source

pub fn delete_dedicated_ip_pool(&self) -> DeleteDedicatedIpPoolFluentBuilder

Constructs a fluent builder for the DeleteDedicatedIpPool operation.

source§

impl Client

source

pub fn delete_email_identity(&self) -> DeleteEmailIdentityFluentBuilder

Constructs a fluent builder for the DeleteEmailIdentity operation.

source§

impl Client

source

pub fn delete_email_identity_policy( &self ) -> DeleteEmailIdentityPolicyFluentBuilder

Constructs a fluent builder for the DeleteEmailIdentityPolicy operation.

source§

impl Client

source

pub fn delete_email_template(&self) -> DeleteEmailTemplateFluentBuilder

Constructs a fluent builder for the DeleteEmailTemplate operation.

source§

impl Client

source

pub fn delete_suppressed_destination( &self ) -> DeleteSuppressedDestinationFluentBuilder

Constructs a fluent builder for the DeleteSuppressedDestination operation.

source§

impl Client

source

pub fn get_account(&self) -> GetAccountFluentBuilder

Constructs a fluent builder for the GetAccount operation.

  • The fluent builder takes no input, just send it.
  • On success, responds with GetAccountOutput with field(s):
    • dedicated_ip_auto_warmup_enabled(bool):

      Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are associated with your account.

    • enforcement_status(Option<String>):

      The reputation status of your Amazon SES account. The status can be one of the following:

      • HEALTHY – There are no reputation-related issues that currently impact your account.

      • PROBATION – We’ve identified potential issues with your Amazon SES account. We’re placing your account under review while you work on correcting these issues.

      • SHUTDOWN – Your account’s ability to send email is currently paused because of an issue with the email sent from your account. When you correct the issue, you can contact us and request that your account’s ability to send email is resumed.

    • production_access_enabled(bool):

      Indicates whether or not your account has production access in the current Amazon Web Services Region.

      If the value is false, then your account is in the sandbox. When your account is in the sandbox, you can only send email to verified identities.

      If the value is true, then your account has production access. When your account has production access, you can send email to any address. The sending quota and maximum sending rate for your account vary based on your specific use case.

    • send_quota(Option<SendQuota>):

      An object that contains information about the per-day and per-second sending limits for your Amazon SES account in the current Amazon Web Services Region.

    • sending_enabled(bool):

      Indicates whether or not email sending is enabled for your Amazon SES account in the current Amazon Web Services Region.

    • suppression_attributes(Option<SuppressionAttributes>):

      An object that contains information about the email address suppression preferences for your account in the current Amazon Web Services Region.

    • details(Option<AccountDetails>):

      An object that defines your account details.

    • vdm_attributes(Option<VdmAttributes>):

      The VDM attributes that apply to your Amazon SES account.

  • On failure, responds with SdkError<GetAccountError>
source§

impl Client

source

pub fn get_blacklist_reports(&self) -> GetBlacklistReportsFluentBuilder

Constructs a fluent builder for the GetBlacklistReports operation.

source§

impl Client

source

pub fn get_configuration_set(&self) -> GetConfigurationSetFluentBuilder

Constructs a fluent builder for the GetConfigurationSet operation.

source§

impl Client

source

pub fn get_configuration_set_event_destinations( &self ) -> GetConfigurationSetEventDestinationsFluentBuilder

Constructs a fluent builder for the GetConfigurationSetEventDestinations operation.

source§

impl Client

source

pub fn get_contact(&self) -> GetContactFluentBuilder

Constructs a fluent builder for the GetContact operation.

source§

impl Client

source

pub fn get_contact_list(&self) -> GetContactListFluentBuilder

Constructs a fluent builder for the GetContactList operation.

source§

impl Client

source

pub fn get_custom_verification_email_template( &self ) -> GetCustomVerificationEmailTemplateFluentBuilder

Constructs a fluent builder for the GetCustomVerificationEmailTemplate operation.

source§

impl Client

source

pub fn get_dedicated_ip(&self) -> GetDedicatedIpFluentBuilder

Constructs a fluent builder for the GetDedicatedIp operation.

source§

impl Client

source

pub fn get_dedicated_ip_pool(&self) -> GetDedicatedIpPoolFluentBuilder

Constructs a fluent builder for the GetDedicatedIpPool operation.

source§

impl Client

source

pub fn get_dedicated_ips(&self) -> GetDedicatedIpsFluentBuilder

Constructs a fluent builder for the GetDedicatedIps operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn get_deliverability_dashboard_options( &self ) -> GetDeliverabilityDashboardOptionsFluentBuilder

Constructs a fluent builder for the GetDeliverabilityDashboardOptions operation.

source§

impl Client

source

pub fn get_deliverability_test_report( &self ) -> GetDeliverabilityTestReportFluentBuilder

Constructs a fluent builder for the GetDeliverabilityTestReport operation.

source§

impl Client

source

pub fn get_domain_deliverability_campaign( &self ) -> GetDomainDeliverabilityCampaignFluentBuilder

Constructs a fluent builder for the GetDomainDeliverabilityCampaign operation.

source§

impl Client

source

pub fn get_domain_statistics_report( &self ) -> GetDomainStatisticsReportFluentBuilder

Constructs a fluent builder for the GetDomainStatisticsReport operation.

source§

impl Client

source

pub fn get_email_identity(&self) -> GetEmailIdentityFluentBuilder

Constructs a fluent builder for the GetEmailIdentity operation.

source§

impl Client

source

pub fn get_email_identity_policies( &self ) -> GetEmailIdentityPoliciesFluentBuilder

Constructs a fluent builder for the GetEmailIdentityPolicies operation.

source§

impl Client

source

pub fn get_email_template(&self) -> GetEmailTemplateFluentBuilder

Constructs a fluent builder for the GetEmailTemplate operation.

source§

impl Client

source

pub fn get_export_job(&self) -> GetExportJobFluentBuilder

Constructs a fluent builder for the GetExportJob operation.

source§

impl Client

source

pub fn get_import_job(&self) -> GetImportJobFluentBuilder

Constructs a fluent builder for the GetImportJob operation.

source§

impl Client

source

pub fn get_message_insights(&self) -> GetMessageInsightsFluentBuilder

Constructs a fluent builder for the GetMessageInsights operation.

source§

impl Client

source

pub fn get_suppressed_destination( &self ) -> GetSuppressedDestinationFluentBuilder

Constructs a fluent builder for the GetSuppressedDestination operation.

source§

impl Client

source

pub fn list_configuration_sets(&self) -> ListConfigurationSetsFluentBuilder

Constructs a fluent builder for the ListConfigurationSets operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_contact_lists(&self) -> ListContactListsFluentBuilder

Constructs a fluent builder for the ListContactLists operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • page_size(i32) / set_page_size(Option<i32>):
      required: false

      Maximum number of contact lists to return at once. Use this parameter to paginate results. If additional contact lists exist beyond the specified limit, the NextToken element is sent in the response. Use the NextToken value in subsequent requests to retrieve additional lists.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      A string token indicating that there might be additional contact lists available to be listed. Use the token provided in the Response to use in the subsequent call to ListContactLists with the same parameters to retrieve the next page of contact lists.


  • On success, responds with ListContactListsOutput with field(s):
  • On failure, responds with SdkError<ListContactListsError>
source§

impl Client

source

pub fn list_contacts(&self) -> ListContactsFluentBuilder

Constructs a fluent builder for the ListContacts operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_custom_verification_email_templates( &self ) -> ListCustomVerificationEmailTemplatesFluentBuilder

Constructs a fluent builder for the ListCustomVerificationEmailTemplates operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_dedicated_ip_pools(&self) -> ListDedicatedIpPoolsFluentBuilder

Constructs a fluent builder for the ListDedicatedIpPools operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_deliverability_test_reports( &self ) -> ListDeliverabilityTestReportsFluentBuilder

Constructs a fluent builder for the ListDeliverabilityTestReports operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_domain_deliverability_campaigns( &self ) -> ListDomainDeliverabilityCampaignsFluentBuilder

Constructs a fluent builder for the ListDomainDeliverabilityCampaigns operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_email_identities(&self) -> ListEmailIdentitiesFluentBuilder

Constructs a fluent builder for the ListEmailIdentities operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_email_templates(&self) -> ListEmailTemplatesFluentBuilder

Constructs a fluent builder for the ListEmailTemplates operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_export_jobs(&self) -> ListExportJobsFluentBuilder

Constructs a fluent builder for the ListExportJobs operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_import_jobs(&self) -> ListImportJobsFluentBuilder

Constructs a fluent builder for the ListImportJobs operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_recommendations(&self) -> ListRecommendationsFluentBuilder

Constructs a fluent builder for the ListRecommendations operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_suppressed_destinations( &self ) -> ListSuppressedDestinationsFluentBuilder

Constructs a fluent builder for the ListSuppressedDestinations operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_tags_for_resource(&self) -> ListTagsForResourceFluentBuilder

Constructs a fluent builder for the ListTagsForResource operation.

source§

impl Client

source

pub fn put_account_dedicated_ip_warmup_attributes( &self ) -> PutAccountDedicatedIpWarmupAttributesFluentBuilder

Constructs a fluent builder for the PutAccountDedicatedIpWarmupAttributes operation.

source§

impl Client

source

pub fn put_account_details(&self) -> PutAccountDetailsFluentBuilder

Constructs a fluent builder for the PutAccountDetails operation.

source§

impl Client

source

pub fn put_account_sending_attributes( &self ) -> PutAccountSendingAttributesFluentBuilder

Constructs a fluent builder for the PutAccountSendingAttributes operation.

source§

impl Client

source

pub fn put_account_suppression_attributes( &self ) -> PutAccountSuppressionAttributesFluentBuilder

Constructs a fluent builder for the PutAccountSuppressionAttributes operation.

source§

impl Client

source

pub fn put_account_vdm_attributes(&self) -> PutAccountVdmAttributesFluentBuilder

Constructs a fluent builder for the PutAccountVdmAttributes operation.

source§

impl Client

source

pub fn put_configuration_set_delivery_options( &self ) -> PutConfigurationSetDeliveryOptionsFluentBuilder

Constructs a fluent builder for the PutConfigurationSetDeliveryOptions operation.

source§

impl Client

source

pub fn put_configuration_set_reputation_options( &self ) -> PutConfigurationSetReputationOptionsFluentBuilder

Constructs a fluent builder for the PutConfigurationSetReputationOptions operation.

source§

impl Client

source

pub fn put_configuration_set_sending_options( &self ) -> PutConfigurationSetSendingOptionsFluentBuilder

Constructs a fluent builder for the PutConfigurationSetSendingOptions operation.

source§

impl Client

source

pub fn put_configuration_set_suppression_options( &self ) -> PutConfigurationSetSuppressionOptionsFluentBuilder

Constructs a fluent builder for the PutConfigurationSetSuppressionOptions operation.

source§

impl Client

source

pub fn put_configuration_set_tracking_options( &self ) -> PutConfigurationSetTrackingOptionsFluentBuilder

Constructs a fluent builder for the PutConfigurationSetTrackingOptions operation.

source§

impl Client

source

pub fn put_configuration_set_vdm_options( &self ) -> PutConfigurationSetVdmOptionsFluentBuilder

Constructs a fluent builder for the PutConfigurationSetVdmOptions operation.

source§

impl Client

source

pub fn put_dedicated_ip_in_pool(&self) -> PutDedicatedIpInPoolFluentBuilder

Constructs a fluent builder for the PutDedicatedIpInPool operation.

source§

impl Client

source

pub fn put_dedicated_ip_pool_scaling_attributes( &self ) -> PutDedicatedIpPoolScalingAttributesFluentBuilder

Constructs a fluent builder for the PutDedicatedIpPoolScalingAttributes operation.

source§

impl Client

source

pub fn put_dedicated_ip_warmup_attributes( &self ) -> PutDedicatedIpWarmupAttributesFluentBuilder

Constructs a fluent builder for the PutDedicatedIpWarmupAttributes operation.

source§

impl Client

source

pub fn put_deliverability_dashboard_option( &self ) -> PutDeliverabilityDashboardOptionFluentBuilder

Constructs a fluent builder for the PutDeliverabilityDashboardOption operation.

source§

impl Client

source

pub fn put_email_identity_configuration_set_attributes( &self ) -> PutEmailIdentityConfigurationSetAttributesFluentBuilder

Constructs a fluent builder for the PutEmailIdentityConfigurationSetAttributes operation.

source§

impl Client

source

pub fn put_email_identity_dkim_attributes( &self ) -> PutEmailIdentityDkimAttributesFluentBuilder

Constructs a fluent builder for the PutEmailIdentityDkimAttributes operation.

source§

impl Client

source

pub fn put_email_identity_dkim_signing_attributes( &self ) -> PutEmailIdentityDkimSigningAttributesFluentBuilder

Constructs a fluent builder for the PutEmailIdentityDkimSigningAttributes operation.

  • The fluent builder is configurable:
  • On success, responds with PutEmailIdentityDkimSigningAttributesOutput with field(s):
    • dkim_status(Option<DkimStatus>):

      The DKIM authentication status of the identity. Amazon SES determines the authentication status by searching for specific records in the DNS configuration for your domain. If you used Easy DKIM to set up DKIM authentication, Amazon SES tries to find three unique CNAME records in the DNS configuration for your domain.

      If you provided a public key to perform DKIM authentication, Amazon SES tries to find a TXT record that uses the selector that you specified. The value of the TXT record must be a public key that’s paired with the private key that you specified in the process of creating the identity.

      The status can be one of the following:

      • PENDING – The verification process was initiated, but Amazon SES hasn’t yet detected the DKIM records in the DNS configuration for the domain.

      • SUCCESS – The verification process completed successfully.

      • FAILED – The verification process failed. This typically occurs when Amazon SES fails to find the DKIM records in the DNS configuration of the domain.

      • TEMPORARY_FAILURE – A temporary issue is preventing Amazon SES from determining the DKIM authentication status of the domain.

      • NOT_STARTED – The DKIM verification process hasn’t been initiated for the domain.

    • dkim_tokens(Option<Vec::<String>>):

      If you used Easy DKIM to configure DKIM authentication for the domain, then this object contains a set of unique strings that you use to create a set of CNAME records that you add to the DNS configuration for your domain. When Amazon SES detects these records in the DNS configuration for your domain, the DKIM authentication process is complete.

      If you configured DKIM authentication for the domain by providing your own public-private key pair, then this object contains the selector that’s associated with your public key.

      Regardless of the DKIM authentication method you use, Amazon SES searches for the appropriate records in the DNS configuration of the domain for up to 72 hours.

  • On failure, responds with SdkError<PutEmailIdentityDkimSigningAttributesError>
source§

impl Client

source

pub fn put_email_identity_feedback_attributes( &self ) -> PutEmailIdentityFeedbackAttributesFluentBuilder

Constructs a fluent builder for the PutEmailIdentityFeedbackAttributes operation.

source§

impl Client

source

pub fn put_email_identity_mail_from_attributes( &self ) -> PutEmailIdentityMailFromAttributesFluentBuilder

Constructs a fluent builder for the PutEmailIdentityMailFromAttributes operation.

source§

impl Client

source

pub fn put_suppressed_destination( &self ) -> PutSuppressedDestinationFluentBuilder

Constructs a fluent builder for the PutSuppressedDestination operation.

source§

impl Client

source

pub fn send_bulk_email(&self) -> SendBulkEmailFluentBuilder

Constructs a fluent builder for the SendBulkEmail operation.

source§

impl Client

source

pub fn send_custom_verification_email( &self ) -> SendCustomVerificationEmailFluentBuilder

Constructs a fluent builder for the SendCustomVerificationEmail operation.

source§

impl Client

source

pub fn send_email(&self) -> SendEmailFluentBuilder

Constructs a fluent builder for the SendEmail operation.

source§

impl Client

source

pub fn tag_resource(&self) -> TagResourceFluentBuilder

Constructs a fluent builder for the TagResource operation.

source§

impl Client

source

pub fn test_render_email_template(&self) -> TestRenderEmailTemplateFluentBuilder

Constructs a fluent builder for the TestRenderEmailTemplate operation.

source§

impl Client

source

pub fn untag_resource(&self) -> UntagResourceFluentBuilder

Constructs a fluent builder for the UntagResource operation.

source§

impl Client

source

pub fn update_configuration_set_event_destination( &self ) -> UpdateConfigurationSetEventDestinationFluentBuilder

Constructs a fluent builder for the UpdateConfigurationSetEventDestination operation.

source§

impl Client

source

pub fn update_contact(&self) -> UpdateContactFluentBuilder

Constructs a fluent builder for the UpdateContact operation.

source§

impl Client

source

pub fn update_contact_list(&self) -> UpdateContactListFluentBuilder

Constructs a fluent builder for the UpdateContactList operation.

source§

impl Client

source

pub fn update_custom_verification_email_template( &self ) -> UpdateCustomVerificationEmailTemplateFluentBuilder

Constructs a fluent builder for the UpdateCustomVerificationEmailTemplate operation.

source§

impl Client

source

pub fn update_email_identity_policy( &self ) -> UpdateEmailIdentityPolicyFluentBuilder

Constructs a fluent builder for the UpdateEmailIdentityPolicy operation.

source§

impl Client

source

pub fn update_email_template(&self) -> UpdateEmailTemplateFluentBuilder

Constructs a fluent builder for the UpdateEmailTemplate operation.

source§

impl Client

source

pub fn from_conf(conf: Config) -> Self

Creates a new client from the service Config.

§Panics

This method will panic in the following cases:

  • Retries or timeouts are enabled without a sleep_impl configured.
  • Identity caching is enabled without a sleep_impl and time_source configured.
  • No behavior_version is provided.

The panic message for each of these will have instructions on how to resolve them.

source

pub fn config(&self) -> &Config

Returns the client’s configuration.

source§

impl Client

source

pub fn new(sdk_config: &SdkConfig) -> Self

Creates a new client from an SDK Config.

§Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.
  • This method will panic if no BehaviorVersion is provided. If you experience this panic, set behavior_version on the Config or enable the behavior-version-latest Cargo feature.

Trait Implementations§

source§

impl Clone for Client

source§

fn clone(&self) -> Client

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Client

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Client

§

impl !RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl !UnwindSafe for Client

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> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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