aws_smithy_http::endpoint

Type Alias EndpointPrefix

Source
pub type EndpointPrefix = EndpointPrefix;
👎Deprecated since 0.60.1: Use aws_smithy_runtime_api::client::endpoint::EndpointPrefix instead.
Expand description

A special type that adds support for services that have special URL-prefixing rules.

Aliased Type§

struct EndpointPrefix(/* private fields */);

Implementations

Source§

impl EndpointPrefix

Source

pub fn new( prefix: impl Into<String>, ) -> Result<EndpointPrefix, InvalidEndpointError>

Create a new endpoint prefix from an impl Into<String>. If the prefix argument is invalid, a InvalidEndpointError will be returned.

Source

pub fn as_str(&self) -> &str

Get the str representation of this EndpointPrefix.

Trait Implementations

Source§

impl Clone for EndpointPrefix

Source§

fn clone(&self) -> EndpointPrefix

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 EndpointPrefix

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for EndpointPrefix

Source§

fn eq(&self, other: &EndpointPrefix) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Storable for EndpointPrefix

Source§

type Storer = StoreReplace<EndpointPrefix>

Specify how an item is stored in the config bag, e.g. StoreReplace and StoreAppend
Source§

impl Eq for EndpointPrefix

Source§

impl StructuralPartialEq for EndpointPrefix