Trait aws_smithy_http::endpoint::ResolveEndpoint
source · pub trait ResolveEndpoint<Params>: Send + Sync {
// Required method
fn resolve_endpoint(&self, params: &Params) -> Result;
}
Expand description
Implementors of this trait can resolve an endpoint that will be applied to a request.
Required Methods§
sourcefn resolve_endpoint(&self, params: &Params) -> Result
fn resolve_endpoint(&self, params: &Params) -> Result
Given some endpoint parameters, resolve an endpoint or return an error when resolution is impossible.
Trait Implementations§
source§fn as_ref(&self) -> &(dyn ResolveEndpoint<T> + 'static)
fn as_ref(&self) -> &(dyn ResolveEndpoint<T> + 'static)
Converts this type into a shared reference of the (usually inferred) input type.
Implementations on Foreign Types§
source§impl<T> ResolveEndpoint<T> for &'static str
impl<T> ResolveEndpoint<T> for &'static str
fn resolve_endpoint(&self, _params: &T) -> Result
Implementors§
impl<T> ResolveEndpoint<T> for Endpoint
This allows customers that use Endpoint
to override the endpoint to continue to do so