Struct aws_sdk_sqs::Endpoint

source ·
pub struct Endpoint { /* private fields */ }
👎Deprecated: Use .endpoint_url(...) directly instead
Expand description

API Endpoint

This implements an API endpoint as specified in the Smithy Endpoint Specification

Implementations§

Create a new endpoint from a URI

Certain services will augment the endpoint with additional metadata. For example, S3 can prefix the host with the bucket name. If your endpoint does not support this, (for example, when communicating with localhost), use Endpoint::immutable.

Create a new endpoint from a URI string

Certain services will augment the endpoint with additional metadata. For example, S3 can prefix the host with the bucket name. If your endpoint does not support this, (for example, when communicating with localhost), use Endpoint::immutable.

Returns the URI of this endpoint

Create a new immutable endpoint from a URI

use http::Uri;
let uri = Uri::from_static("http://localhost:8000");
let endpoint = Endpoint::immutable_uri(uri);

Certain services will augment the endpoint with additional metadata. For example, S3 can prefix the host with the bucket name. This constructor creates an endpoint which will ignore those mutations. If you want an endpoint which will obey mutation requests, use Endpoint::mutable instead.

Create a new immutable endpoint from a URI string

let endpoint = Endpoint::immutable("http://localhost:8000");

Certain services will augment the endpoint with additional metadata. For example, S3 can prefix the host with the bucket name. This constructor creates an endpoint which will ignore those mutations. If you want an endpoint which will obey mutation requests, use Endpoint::mutable instead.

Sets the endpoint on uri, potentially applying the specified prefix in the process.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

An Endpoint can be its own resolver to support static endpoints

Resolves the AWS endpoint for a given region.

This allows customers that use Endpoint to override the endpoint to continue to do so

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

Calls U::from(self).

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

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more