Struct aws_sdk_s3control::Client

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

Client for AWS S3 Control

Client for invoking operations on AWS S3 Control. Each operation on AWS S3 Control 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_s3control::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_s3control::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 AssociateAccessGrantsIdentityCenter operation has a Client::associate_access_grants_identity_center, 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.associate_access_grants_identity_center()
    .account_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 associate_access_grants_identity_center( &self ) -> AssociateAccessGrantsIdentityCenterFluentBuilder

Constructs a fluent builder for the AssociateAccessGrantsIdentityCenter operation.

source§

impl Client

source

pub fn create_access_grant(&self) -> CreateAccessGrantFluentBuilder

Constructs a fluent builder for the CreateAccessGrant operation.

  • The fluent builder is configurable:
  • On success, responds with CreateAccessGrantOutput with field(s):
    • created_at(Option<DateTime>):

      The date and time when you created the access grant.

    • access_grant_id(Option<String>):

      The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant.

    • access_grant_arn(Option<String>):

      The Amazon Resource Name (ARN) of the access grant.

    • grantee(Option<Grantee>):

      The user, group, or role to which you are granting access. You can grant access to an IAM user or role. If you have added your corporate directory to Amazon Web Services IAM Identity Center and associated your Identity Center instance with your S3 Access Grants instance, the grantee can also be a corporate directory user or group.

    • access_grants_location_id(Option<String>):

      The ID of the registered location to which you are granting access. S3 Access Grants assigns this ID when you register the location. S3 Access Grants assigns the ID default to the default location s3:// and assigns an auto-generated ID to other locations that you register.

    • access_grants_location_configuration(Option<AccessGrantsLocationConfiguration>):

      The configuration options of the grant location. The grant location is the S3 path to the data to which you are granting access.

    • permission(Option<Permission>):

      The type of access that you are granting to your S3 data, which can be set to one of the following values:

      • READ – Grant read-only access to the S3 data.

      • WRITE – Grant write-only access to the S3 data.

      • READWRITE – Grant both read and write access to the S3 data.

    • application_arn(Option<String>):

      The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance. If the grant includes an application ARN, the grantee can only access the S3 data through this application.

    • grant_scope(Option<String>):

      The S3 path of the data to which you are granting access. It is the result of appending the Subprefix to the location scope.

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

impl Client

source

pub fn create_access_grants_instance( &self ) -> CreateAccessGrantsInstanceFluentBuilder

Constructs a fluent builder for the CreateAccessGrantsInstance operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The ID of the Amazon Web Services account that is making this request.


    • identity_center_arn(impl Into<String>) / set_identity_center_arn(Option<String>):
      required: false

      If you would like to associate your S3 Access Grants instance with an Amazon Web Services IAM Identity Center instance, use this field to pass the Amazon Resource Name (ARN) of the Amazon Web Services IAM Identity Center instance that you are associating with your S3 Access Grants instance. An IAM Identity Center instance is your corporate identity directory that you added to the IAM Identity Center. You can use the ListInstances API operation to retrieve a list of your Identity Center instances and their ARNs.


    • tags(Tag) / set_tags(Option<Vec::<Tag>>):
      required: false

      The Amazon Web Services resource tags that you are adding to the S3 Access Grants instance. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.


  • On success, responds with CreateAccessGrantsInstanceOutput with field(s):
    • created_at(Option<DateTime>):

      The date and time when you created the S3 Access Grants instance.

    • access_grants_instance_id(Option<String>):

      The ID of the S3 Access Grants instance. The ID is default. You can have one S3 Access Grants instance per Region per account.

    • access_grants_instance_arn(Option<String>):

      The Amazon Resource Name (ARN) of the S3 Access Grants instance.

    • identity_center_arn(Option<String>):

      If you associated your S3 Access Grants instance with an Amazon Web Services IAM Identity Center instance, this field returns the Amazon Resource Name (ARN) of the IAM Identity Center instance application; a subresource of the original Identity Center instance passed in the request. S3 Access Grants creates this Identity Center application for this specific S3 Access Grants instance.

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

impl Client

source

pub fn create_access_grants_location( &self ) -> CreateAccessGrantsLocationFluentBuilder

Constructs a fluent builder for the CreateAccessGrantsLocation operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The ID of the Amazon Web Services account that is making this request.


    • location_scope(impl Into<String>) / set_location_scope(Option<String>):
      required: true

      The S3 path to the location that you are registering. The location scope can be the default S3 location s3://, the S3 path to a bucket s3://, or the S3 path to a bucket and prefix s3:// / . A prefix in S3 is a string of characters at the beginning of an object key name used to organize the objects that you store in your S3 buckets. For example, object key names that start with the engineering/ prefix or object key names that start with the marketing/campaigns/ prefix.


    • iam_role_arn(impl Into<String>) / set_iam_role_arn(Option<String>):
      required: true

      The Amazon Resource Name (ARN) of the IAM role for the registered location. S3 Access Grants assumes this role to manage access to the registered location.


    • tags(Tag) / set_tags(Option<Vec::<Tag>>):
      required: false

      The Amazon Web Services resource tags that you are adding to the S3 Access Grants location. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.


  • On success, responds with CreateAccessGrantsLocationOutput with field(s):
    • created_at(Option<DateTime>):

      The date and time when you registered the location.

    • access_grants_location_id(Option<String>):

      The ID of the registered location to which you are granting access. S3 Access Grants assigns this ID when you register the location. S3 Access Grants assigns the ID default to the default location s3:// and assigns an auto-generated ID to other locations that you register.

    • access_grants_location_arn(Option<String>):

      The Amazon Resource Name (ARN) of the location you are registering.

    • location_scope(Option<String>):

      The S3 URI path to the location that you are registering. The location scope can be the default S3 location s3://, the S3 path to a bucket, or the S3 path to a bucket and prefix. A prefix in S3 is a string of characters at the beginning of an object key name used to organize the objects that you store in your S3 buckets. For example, object key names that start with the engineering/ prefix or object key names that start with the marketing/campaigns/ prefix.

    • iam_role_arn(Option<String>):

      The Amazon Resource Name (ARN) of the IAM role for the registered location. S3 Access Grants assumes this role to manage access to the registered location.

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

impl Client

source

pub fn create_access_point(&self) -> CreateAccessPointFluentBuilder

Constructs a fluent builder for the CreateAccessPoint operation.

source§

impl Client

source

pub fn create_access_point_for_object_lambda( &self ) -> CreateAccessPointForObjectLambdaFluentBuilder

Constructs a fluent builder for the CreateAccessPointForObjectLambda operation.

source§

impl Client

source

pub fn create_bucket(&self) -> CreateBucketFluentBuilder

Constructs a fluent builder for the CreateBucket operation.

source§

impl Client

source

pub fn create_job(&self) -> CreateJobFluentBuilder

Constructs a fluent builder for the CreateJob operation.

source§

impl Client

source

pub fn create_multi_region_access_point( &self ) -> CreateMultiRegionAccessPointFluentBuilder

Constructs a fluent builder for the CreateMultiRegionAccessPoint operation.

source§

impl Client

source

pub fn create_storage_lens_group(&self) -> CreateStorageLensGroupFluentBuilder

Constructs a fluent builder for the CreateStorageLensGroup operation.

source§

impl Client

source

pub fn delete_access_grant(&self) -> DeleteAccessGrantFluentBuilder

Constructs a fluent builder for the DeleteAccessGrant operation.

source§

impl Client

source

pub fn delete_access_grants_instance( &self ) -> DeleteAccessGrantsInstanceFluentBuilder

Constructs a fluent builder for the DeleteAccessGrantsInstance operation.

source§

impl Client

source

pub fn delete_access_grants_instance_resource_policy( &self ) -> DeleteAccessGrantsInstanceResourcePolicyFluentBuilder

Constructs a fluent builder for the DeleteAccessGrantsInstanceResourcePolicy operation.

source§

impl Client

source

pub fn delete_access_grants_location( &self ) -> DeleteAccessGrantsLocationFluentBuilder

Constructs a fluent builder for the DeleteAccessGrantsLocation operation.

source§

impl Client

source

pub fn delete_access_point(&self) -> DeleteAccessPointFluentBuilder

Constructs a fluent builder for the DeleteAccessPoint operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The Amazon Web Services account ID for the account that owns the specified access point.


    • name(impl Into<String>) / set_name(Option<String>):
      required: true

      The name of the access point you want to delete.

      For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

      For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts: : :outpost/ /accesspoint/ . For example, to access the access point reports-ap through Outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.


  • On success, responds with DeleteAccessPointOutput
  • On failure, responds with SdkError<DeleteAccessPointError>
source§

impl Client

source

pub fn delete_access_point_for_object_lambda( &self ) -> DeleteAccessPointForObjectLambdaFluentBuilder

Constructs a fluent builder for the DeleteAccessPointForObjectLambda operation.

source§

impl Client

source

pub fn delete_access_point_policy(&self) -> DeleteAccessPointPolicyFluentBuilder

Constructs a fluent builder for the DeleteAccessPointPolicy operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The account ID for the account that owns the specified access point.


    • name(impl Into<String>) / set_name(Option<String>):
      required: true

      The name of the access point whose policy you want to delete.

      For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

      For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts: : :outpost/ /accesspoint/ . For example, to access the access point reports-ap through Outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.


  • On success, responds with DeleteAccessPointPolicyOutput
  • On failure, responds with SdkError<DeleteAccessPointPolicyError>
source§

impl Client

source

pub fn delete_access_point_policy_for_object_lambda( &self ) -> DeleteAccessPointPolicyForObjectLambdaFluentBuilder

Constructs a fluent builder for the DeleteAccessPointPolicyForObjectLambda operation.

source§

impl Client

source

pub fn delete_bucket(&self) -> DeleteBucketFluentBuilder

Constructs a fluent builder for the DeleteBucket operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The account ID that owns the Outposts bucket.


    • bucket(impl Into<String>) / set_bucket(Option<String>):
      required: true

      Specifies the bucket being deleted.

      For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

      For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts: : :outpost/ /bucket/ . For example, to access the bucket reports through Outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.


  • On success, responds with DeleteBucketOutput
  • On failure, responds with SdkError<DeleteBucketError>
source§

impl Client

source

pub fn delete_bucket_lifecycle_configuration( &self ) -> DeleteBucketLifecycleConfigurationFluentBuilder

Constructs a fluent builder for the DeleteBucketLifecycleConfiguration operation.

source§

impl Client

source

pub fn delete_bucket_policy(&self) -> DeleteBucketPolicyFluentBuilder

Constructs a fluent builder for the DeleteBucketPolicy operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The account ID of the Outposts bucket.


    • bucket(impl Into<String>) / set_bucket(Option<String>):
      required: true

      Specifies the bucket.

      For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

      For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts: : :outpost/ /bucket/ . For example, to access the bucket reports through Outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.


  • On success, responds with DeleteBucketPolicyOutput
  • On failure, responds with SdkError<DeleteBucketPolicyError>
source§

impl Client

source

pub fn delete_bucket_replication(&self) -> DeleteBucketReplicationFluentBuilder

Constructs a fluent builder for the DeleteBucketReplication operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The Amazon Web Services account ID of the Outposts bucket to delete the replication configuration for.


    • bucket(impl Into<String>) / set_bucket(Option<String>):
      required: true

      Specifies the S3 on Outposts bucket to delete the replication configuration for.

      For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

      For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts: : :outpost/ /bucket/ . For example, to access the bucket reports through Outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.


  • On success, responds with DeleteBucketReplicationOutput
  • On failure, responds with SdkError<DeleteBucketReplicationError>
source§

impl Client

source

pub fn delete_bucket_tagging(&self) -> DeleteBucketTaggingFluentBuilder

Constructs a fluent builder for the DeleteBucketTagging operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The Amazon Web Services account ID of the Outposts bucket tag set to be removed.


    • bucket(impl Into<String>) / set_bucket(Option<String>):
      required: true

      The bucket ARN that has the tag set to be removed.

      For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

      For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts: : :outpost/ /bucket/ . For example, to access the bucket reports through Outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.


  • On success, responds with DeleteBucketTaggingOutput
  • On failure, responds with SdkError<DeleteBucketTaggingError>
source§

impl Client

source

pub fn delete_job_tagging(&self) -> DeleteJobTaggingFluentBuilder

Constructs a fluent builder for the DeleteJobTagging operation.

source§

impl Client

source

pub fn delete_multi_region_access_point( &self ) -> DeleteMultiRegionAccessPointFluentBuilder

Constructs a fluent builder for the DeleteMultiRegionAccessPoint operation.

source§

impl Client

source

pub fn delete_public_access_block(&self) -> DeletePublicAccessBlockFluentBuilder

Constructs a fluent builder for the DeletePublicAccessBlock operation.

source§

impl Client

source

pub fn delete_storage_lens_configuration( &self ) -> DeleteStorageLensConfigurationFluentBuilder

Constructs a fluent builder for the DeleteStorageLensConfiguration operation.

source§

impl Client

source

pub fn delete_storage_lens_configuration_tagging( &self ) -> DeleteStorageLensConfigurationTaggingFluentBuilder

Constructs a fluent builder for the DeleteStorageLensConfigurationTagging operation.

source§

impl Client

source

pub fn delete_storage_lens_group(&self) -> DeleteStorageLensGroupFluentBuilder

Constructs a fluent builder for the DeleteStorageLensGroup operation.

source§

impl Client

source

pub fn describe_job(&self) -> DescribeJobFluentBuilder

Constructs a fluent builder for the DescribeJob operation.

source§

impl Client

source

pub fn describe_multi_region_access_point_operation( &self ) -> DescribeMultiRegionAccessPointOperationFluentBuilder

Constructs a fluent builder for the DescribeMultiRegionAccessPointOperation operation.

source§

impl Client

source

pub fn dissociate_access_grants_identity_center( &self ) -> DissociateAccessGrantsIdentityCenterFluentBuilder

Constructs a fluent builder for the DissociateAccessGrantsIdentityCenter operation.

source§

impl Client

source

pub fn get_access_grant(&self) -> GetAccessGrantFluentBuilder

Constructs a fluent builder for the GetAccessGrant operation.

source§

impl Client

source

pub fn get_access_grants_instance(&self) -> GetAccessGrantsInstanceFluentBuilder

Constructs a fluent builder for the GetAccessGrantsInstance operation.

source§

impl Client

source

pub fn get_access_grants_instance_for_prefix( &self ) -> GetAccessGrantsInstanceForPrefixFluentBuilder

Constructs a fluent builder for the GetAccessGrantsInstanceForPrefix operation.

source§

impl Client

source

pub fn get_access_grants_instance_resource_policy( &self ) -> GetAccessGrantsInstanceResourcePolicyFluentBuilder

Constructs a fluent builder for the GetAccessGrantsInstanceResourcePolicy operation.

source§

impl Client

source

pub fn get_access_grants_location(&self) -> GetAccessGrantsLocationFluentBuilder

Constructs a fluent builder for the GetAccessGrantsLocation operation.

source§

impl Client

source

pub fn get_access_point(&self) -> GetAccessPointFluentBuilder

Constructs a fluent builder for the GetAccessPoint operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The Amazon Web Services account ID for the account that owns the specified access point.


    • name(impl Into<String>) / set_name(Option<String>):
      required: true

      The name of the access point whose configuration information you want to retrieve.

      For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

      For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts: : :outpost/ /accesspoint/ . For example, to access the access point reports-ap through Outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.


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

impl Client

source

pub fn get_access_point_configuration_for_object_lambda( &self ) -> GetAccessPointConfigurationForObjectLambdaFluentBuilder

Constructs a fluent builder for the GetAccessPointConfigurationForObjectLambda operation.

source§

impl Client

source

pub fn get_access_point_for_object_lambda( &self ) -> GetAccessPointForObjectLambdaFluentBuilder

Constructs a fluent builder for the GetAccessPointForObjectLambda operation.

source§

impl Client

source

pub fn get_access_point_policy(&self) -> GetAccessPointPolicyFluentBuilder

Constructs a fluent builder for the GetAccessPointPolicy operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The account ID for the account that owns the specified access point.


    • name(impl Into<String>) / set_name(Option<String>):
      required: true

      The name of the access point whose policy you want to retrieve.

      For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

      For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts: : :outpost/ /accesspoint/ . For example, to access the access point reports-ap through Outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.


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

impl Client

source

pub fn get_access_point_policy_for_object_lambda( &self ) -> GetAccessPointPolicyForObjectLambdaFluentBuilder

Constructs a fluent builder for the GetAccessPointPolicyForObjectLambda operation.

source§

impl Client

source

pub fn get_access_point_policy_status( &self ) -> GetAccessPointPolicyStatusFluentBuilder

Constructs a fluent builder for the GetAccessPointPolicyStatus operation.

source§

impl Client

source

pub fn get_access_point_policy_status_for_object_lambda( &self ) -> GetAccessPointPolicyStatusForObjectLambdaFluentBuilder

Constructs a fluent builder for the GetAccessPointPolicyStatusForObjectLambda operation.

source§

impl Client

source

pub fn get_bucket(&self) -> GetBucketFluentBuilder

Constructs a fluent builder for the GetBucket operation.

source§

impl Client

source

pub fn get_bucket_lifecycle_configuration( &self ) -> GetBucketLifecycleConfigurationFluentBuilder

Constructs a fluent builder for the GetBucketLifecycleConfiguration operation.

source§

impl Client

source

pub fn get_bucket_policy(&self) -> GetBucketPolicyFluentBuilder

Constructs a fluent builder for the GetBucketPolicy operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The Amazon Web Services account ID of the Outposts bucket.


    • bucket(impl Into<String>) / set_bucket(Option<String>):
      required: true

      Specifies the bucket.

      For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

      For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts: : :outpost/ /bucket/ . For example, to access the bucket reports through Outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.


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

impl Client

source

pub fn get_bucket_replication(&self) -> GetBucketReplicationFluentBuilder

Constructs a fluent builder for the GetBucketReplication operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The Amazon Web Services account ID of the Outposts bucket.


    • bucket(impl Into<String>) / set_bucket(Option<String>):
      required: true

      Specifies the bucket to get the replication information for.

      For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

      For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts: : :outpost/ /bucket/ . For example, to access the bucket reports through Outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.


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

impl Client

source

pub fn get_bucket_tagging(&self) -> GetBucketTaggingFluentBuilder

Constructs a fluent builder for the GetBucketTagging operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The Amazon Web Services account ID of the Outposts bucket.


    • bucket(impl Into<String>) / set_bucket(Option<String>):
      required: true

      Specifies the bucket.

      For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

      For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts: : :outpost/ /bucket/ . For example, to access the bucket reports through Outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.


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

impl Client

source

pub fn get_bucket_versioning(&self) -> GetBucketVersioningFluentBuilder

Constructs a fluent builder for the GetBucketVersioning operation.

source§

impl Client

source

pub fn get_data_access(&self) -> GetDataAccessFluentBuilder

Constructs a fluent builder for the GetDataAccess operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The ID of the Amazon Web Services account that is making this request.


    • target(impl Into<String>) / set_target(Option<String>):
      required: true

      The S3 URI path of the data to which you are requesting temporary access credentials. If the requesting account has an access grant for this data, S3 Access Grants vends temporary access credentials in the response.


    • permission(Permission) / set_permission(Option<Permission>):
      required: true

      The type of permission granted to your S3 data, which can be set to one of the following values:

      • READ – Grant read-only access to the S3 data.

      • WRITE – Grant write-only access to the S3 data.

      • READWRITE – Grant both read and write access to the S3 data.


    • duration_seconds(i32) / set_duration_seconds(Option<i32>):
      required: false

      The session duration, in seconds, of the temporary access credential that S3 Access Grants vends to the grantee or client application. The default value is 1 hour, but the grantee can specify a range from 900 seconds (15 minutes) up to 43200 seconds (12 hours). If the grantee requests a value higher than this maximum, the operation fails.


    • privilege(Privilege) / set_privilege(Option<Privilege>):
      required: false

      The scope of the temporary access credential that S3 Access Grants vends to the grantee or client application.

      • Default – The scope of the returned temporary access token is the scope of the grant that is closest to the target scope.

      • Minimal – The scope of the returned temporary access token is the same as the requested target scope as long as the requested scope is the same as or a subset of the grant scope.


    • target_type(S3PrefixType) / set_target_type(Option<S3PrefixType>):
      required: false

      The type of Target. The only possible value is Object. Pass this value if the target data that you would like to access is a path to an object. Do not pass this value if the target data is a bucket or a bucket and a prefix.


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

impl Client

source

pub fn get_job_tagging(&self) -> GetJobTaggingFluentBuilder

Constructs a fluent builder for the GetJobTagging operation.

source§

impl Client

source

pub fn get_multi_region_access_point( &self ) -> GetMultiRegionAccessPointFluentBuilder

Constructs a fluent builder for the GetMultiRegionAccessPoint operation.

source§

impl Client

source

pub fn get_multi_region_access_point_policy( &self ) -> GetMultiRegionAccessPointPolicyFluentBuilder

Constructs a fluent builder for the GetMultiRegionAccessPointPolicy operation.

source§

impl Client

source

pub fn get_multi_region_access_point_policy_status( &self ) -> GetMultiRegionAccessPointPolicyStatusFluentBuilder

Constructs a fluent builder for the GetMultiRegionAccessPointPolicyStatus operation.

source§

impl Client

source

pub fn get_multi_region_access_point_routes( &self ) -> GetMultiRegionAccessPointRoutesFluentBuilder

Constructs a fluent builder for the GetMultiRegionAccessPointRoutes operation.

source§

impl Client

source

pub fn get_public_access_block(&self) -> GetPublicAccessBlockFluentBuilder

Constructs a fluent builder for the GetPublicAccessBlock operation.

source§

impl Client

source

pub fn get_storage_lens_configuration( &self ) -> GetStorageLensConfigurationFluentBuilder

Constructs a fluent builder for the GetStorageLensConfiguration operation.

source§

impl Client

source

pub fn get_storage_lens_configuration_tagging( &self ) -> GetStorageLensConfigurationTaggingFluentBuilder

Constructs a fluent builder for the GetStorageLensConfigurationTagging operation.

source§

impl Client

source

pub fn get_storage_lens_group(&self) -> GetStorageLensGroupFluentBuilder

Constructs a fluent builder for the GetStorageLensGroup operation.

source§

impl Client

source

pub fn list_access_grants(&self) -> ListAccessGrantsFluentBuilder

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

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The ID of the Amazon Web Services account that is making this request.


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

      A pagination token to request the next page of results. Pass this value into a subsequent List Access Grants request in order to retrieve the next page of results.


    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of access grants that you would like returned in the List Access Grants response. If the results include the pagination token NextToken, make another call using the NextToken to determine if there are more results.


    • grantee_type(GranteeType) / set_grantee_type(Option<GranteeType>):
      required: false

      The type of the grantee to which access has been granted. It can be one of the following values:

      • IAM - An IAM user or role.

      • DIRECTORY_USER - Your corporate directory user. You can use this option if you have added your corporate identity directory to IAM Identity Center and associated the IAM Identity Center instance with your S3 Access Grants instance.

      • DIRECTORY_GROUP - Your corporate directory group. You can use this option if you have added your corporate identity directory to IAM Identity Center and associated the IAM Identity Center instance with your S3 Access Grants instance.


    • grantee_identifier(impl Into<String>) / set_grantee_identifier(Option<String>):
      required: false

      The unique identifer of the Grantee. If the grantee type is IAM, the identifier is the IAM Amazon Resource Name (ARN) of the user or role. If the grantee type is a directory user or group, the identifier is 128-bit universally unique identifier (UUID) in the format a1b2c3d4-5678-90ab-cdef-EXAMPLE11111. You can obtain this UUID from your Amazon Web Services IAM Identity Center instance.


    • permission(Permission) / set_permission(Option<Permission>):
      required: false

      The type of permission granted to your S3 data, which can be set to one of the following values:

      • READ – Grant read-only access to the S3 data.

      • WRITE – Grant write-only access to the S3 data.

      • READWRITE – Grant both read and write access to the S3 data.


    • grant_scope(impl Into<String>) / set_grant_scope(Option<String>):
      required: false

      The S3 path of the data to which you are granting access. It is the result of appending the Subprefix to the location scope.


    • application_arn(impl Into<String>) / set_application_arn(Option<String>):
      required: false

      The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance. If the grant includes an application ARN, the grantee can only access the S3 data through this application.


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

impl Client

source

pub fn list_access_grants_instances( &self ) -> ListAccessGrantsInstancesFluentBuilder

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

source§

impl Client

source

pub fn list_access_grants_locations( &self ) -> ListAccessGrantsLocationsFluentBuilder

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

source§

impl Client

source

pub fn list_access_points(&self) -> ListAccessPointsFluentBuilder

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

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The Amazon Web Services account ID for the account that owns the specified access points.


    • bucket(impl Into<String>) / set_bucket(Option<String>):
      required: false

      The name of the bucket whose associated access points you want to list.

      For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

      For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts: : :outpost/ /bucket/ . For example, to access the bucket reports through Outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.


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

      A continuation token. If a previous call to ListAccessPoints returned a continuation token in the NextToken field, then providing that value here causes Amazon S3 to retrieve the next page of results.


    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of access points that you want to include in the list. If the specified bucket has more than this number of access points, then the response will include a continuation token in the NextToken field that you can use to retrieve the next page of access points.


  • On success, responds with ListAccessPointsOutput with field(s):
    • access_point_list(Option<Vec::<AccessPoint>>):

      Contains identification and configuration information for one or more access points associated with the specified bucket.

    • next_token(Option<String>):

      If the specified bucket has more access points than can be returned in one call to this API, this field contains a continuation token that you can provide in subsequent calls to this API to retrieve additional access points.

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

impl Client

source

pub fn list_access_points_for_object_lambda( &self ) -> ListAccessPointsForObjectLambdaFluentBuilder

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

source§

impl Client

source

pub fn list_jobs(&self) -> ListJobsFluentBuilder

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

source§

impl Client

source

pub fn list_multi_region_access_points( &self ) -> ListMultiRegionAccessPointsFluentBuilder

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

source§

impl Client

source

pub fn list_regional_buckets(&self) -> ListRegionalBucketsFluentBuilder

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

source§

impl Client

source

pub fn list_storage_lens_configurations( &self ) -> ListStorageLensConfigurationsFluentBuilder

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

source§

impl Client

source

pub fn list_storage_lens_groups(&self) -> ListStorageLensGroupsFluentBuilder

Constructs a fluent builder for the ListStorageLensGroups 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_access_grants_instance_resource_policy( &self ) -> PutAccessGrantsInstanceResourcePolicyFluentBuilder

Constructs a fluent builder for the PutAccessGrantsInstanceResourcePolicy operation.

source§

impl Client

source

pub fn put_access_point_configuration_for_object_lambda( &self ) -> PutAccessPointConfigurationForObjectLambdaFluentBuilder

Constructs a fluent builder for the PutAccessPointConfigurationForObjectLambda operation.

source§

impl Client

source

pub fn put_access_point_policy(&self) -> PutAccessPointPolicyFluentBuilder

Constructs a fluent builder for the PutAccessPointPolicy operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The Amazon Web Services account ID for owner of the bucket associated with the specified access point.


    • name(impl Into<String>) / set_name(Option<String>):
      required: true

      The name of the access point that you want to associate with the specified policy.

      For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

      For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts: : :outpost/ /accesspoint/ . For example, to access the access point reports-ap through Outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must be URL encoded.


    • policy(impl Into<String>) / set_policy(Option<String>):
      required: true

      The policy that you want to apply to the specified access point. For more information about access point policies, see Managing data access with Amazon S3 access points in the Amazon S3 User Guide.


  • On success, responds with PutAccessPointPolicyOutput
  • On failure, responds with SdkError<PutAccessPointPolicyError>
source§

impl Client

source

pub fn put_access_point_policy_for_object_lambda( &self ) -> PutAccessPointPolicyForObjectLambdaFluentBuilder

Constructs a fluent builder for the PutAccessPointPolicyForObjectLambda operation.

source§

impl Client

source

pub fn put_bucket_lifecycle_configuration( &self ) -> PutBucketLifecycleConfigurationFluentBuilder

Constructs a fluent builder for the PutBucketLifecycleConfiguration operation.

source§

impl Client

source

pub fn put_bucket_policy(&self) -> PutBucketPolicyFluentBuilder

Constructs a fluent builder for the PutBucketPolicy operation.

source§

impl Client

source

pub fn put_bucket_replication(&self) -> PutBucketReplicationFluentBuilder

Constructs a fluent builder for the PutBucketReplication operation.

source§

impl Client

source

pub fn put_bucket_tagging(&self) -> PutBucketTaggingFluentBuilder

Constructs a fluent builder for the PutBucketTagging operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The Amazon Web Services account ID of the Outposts bucket.


    • bucket(impl Into<String>) / set_bucket(Option<String>):
      required: true

      The Amazon Resource Name (ARN) of the bucket.

      For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.

      For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts: : :outpost/ /bucket/ . For example, to access the bucket reports through Outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. The value must be URL encoded.


    • tagging(Tagging) / set_tagging(Option<Tagging>):
      required: true


  • On success, responds with PutBucketTaggingOutput
  • On failure, responds with SdkError<PutBucketTaggingError>
source§

impl Client

source

pub fn put_bucket_versioning(&self) -> PutBucketVersioningFluentBuilder

Constructs a fluent builder for the PutBucketVersioning operation.

source§

impl Client

source

pub fn put_job_tagging(&self) -> PutJobTaggingFluentBuilder

Constructs a fluent builder for the PutJobTagging operation.

source§

impl Client

source

pub fn put_multi_region_access_point_policy( &self ) -> PutMultiRegionAccessPointPolicyFluentBuilder

Constructs a fluent builder for the PutMultiRegionAccessPointPolicy operation.

source§

impl Client

source

pub fn put_public_access_block(&self) -> PutPublicAccessBlockFluentBuilder

Constructs a fluent builder for the PutPublicAccessBlock operation.

source§

impl Client

source

pub fn put_storage_lens_configuration( &self ) -> PutStorageLensConfigurationFluentBuilder

Constructs a fluent builder for the PutStorageLensConfiguration operation.

source§

impl Client

source

pub fn put_storage_lens_configuration_tagging( &self ) -> PutStorageLensConfigurationTaggingFluentBuilder

Constructs a fluent builder for the PutStorageLensConfigurationTagging operation.

source§

impl Client

source

pub fn submit_multi_region_access_point_routes( &self ) -> SubmitMultiRegionAccessPointRoutesFluentBuilder

Constructs a fluent builder for the SubmitMultiRegionAccessPointRoutes 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 untag_resource(&self) -> UntagResourceFluentBuilder

Constructs a fluent builder for the UntagResource operation.

source§

impl Client

source

pub fn update_access_grants_location( &self ) -> UpdateAccessGrantsLocationFluentBuilder

Constructs a fluent builder for the UpdateAccessGrantsLocation operation.

  • The fluent builder is configurable:
    • account_id(impl Into<String>) / set_account_id(Option<String>):
      required: true

      The ID of the Amazon Web Services account that is making this request.


    • access_grants_location_id(impl Into<String>) / set_access_grants_location_id(Option<String>):
      required: true

      The ID of the registered location that you are updating. S3 Access Grants assigns this ID when you register the location. S3 Access Grants assigns the ID default to the default location s3:// and assigns an auto-generated ID to other locations that you register.

      The ID of the registered location to which you are granting access. S3 Access Grants assigned this ID when you registered the location. S3 Access Grants assigns the ID default to the default location s3:// and assigns an auto-generated ID to other locations that you register.

      If you are passing the default location, you cannot create an access grant for the entire default location. You must also specify a bucket or a bucket and prefix in the Subprefix field.


    • iam_role_arn(impl Into<String>) / set_iam_role_arn(Option<String>):
      required: true

      The Amazon Resource Name (ARN) of the IAM role for the registered location. S3 Access Grants assumes this role to manage access to the registered location.


  • On success, responds with UpdateAccessGrantsLocationOutput with field(s):
    • created_at(Option<DateTime>):

      The date and time when you registered the location.

    • access_grants_location_id(Option<String>):

      The ID of the registered location to which you are granting access. S3 Access Grants assigned this ID when you registered the location. S3 Access Grants assigns the ID default to the default location s3:// and assigns an auto-generated ID to other locations that you register.

    • access_grants_location_arn(Option<String>):

      The Amazon Resource Name (ARN) of the registered location that you are updating.

    • location_scope(Option<String>):

      The S3 URI path of the location that you are updating. You cannot update the scope of the registered location. The location scope can be the default S3 location s3://, the S3 path to a bucket s3://, or the S3 path to a bucket and prefix s3:// / .

    • iam_role_arn(Option<String>):

      The Amazon Resource Name (ARN) of the IAM role of the registered location. S3 Access Grants assumes this role to manage access to the registered location.

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

impl Client

source

pub fn update_job_priority(&self) -> UpdateJobPriorityFluentBuilder

Constructs a fluent builder for the UpdateJobPriority operation.

source§

impl Client

source

pub fn update_job_status(&self) -> UpdateJobStatusFluentBuilder

Constructs a fluent builder for the UpdateJobStatus operation.

source§

impl Client

source

pub fn update_storage_lens_group(&self) -> UpdateStorageLensGroupFluentBuilder

Constructs a fluent builder for the UpdateStorageLensGroup 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