pub struct EndpointResolverParams { /* private fields */ }Expand description
Parameters originating from the Smithy endpoint ruleset required for endpoint resolution.
The actual endpoint parameters are code generated from the Smithy model, and thus,
are not known to the runtime crates. Hence, this struct is really a new-type around
a TypeErasedBox that holds the actual concrete parameters in it.
This struct allows the caller to store and retrieve properties of arbitrary types.
These arbitrary properties are intended to be incorporated into the concrete parameters
by ResolveEndpoint::finalize_params.
Implementations§
Source§impl EndpointResolverParams
impl EndpointResolverParams
Sourcepub fn new<T: Debug + Send + Sync + 'static>(params: T) -> Self
pub fn new<T: Debug + Send + Sync + 'static>(params: T) -> Self
Creates a new EndpointResolverParams from a concrete parameters instance.
Sourcepub fn get<T: Debug + Send + Sync + 'static>(&self) -> Option<&T>
pub fn get<T: Debug + Send + Sync + 'static>(&self) -> Option<&T>
Attempts to downcast the underlying concrete parameters to T and return it as a reference.
Sourcepub fn get_mut<T: Debug + Send + Sync + 'static>(&mut self) -> Option<&mut T>
pub fn get_mut<T: Debug + Send + Sync + 'static>(&mut self) -> Option<&mut T>
Attempts to downcast the underlying concrete parameters to T and return it as a mutable reference.
Sourcepub fn set_property<T: Debug + Send + Sync + 'static>(&mut self, t: T)
pub fn set_property<T: Debug + Send + Sync + 'static>(&mut self, t: T)
Sets property of an arbitrary type T for the endpoint resolver params.
Trait Implementations§
Source§impl Debug for EndpointResolverParams
impl Debug for EndpointResolverParams
Source§impl Storable for EndpointResolverParams
impl Storable for EndpointResolverParams
Source§type Storer = StoreReplace<EndpointResolverParams>
type Storer = StoreReplace<EndpointResolverParams>
StoreReplace and StoreAppendAuto Trait Implementations§
impl Freeze for EndpointResolverParams
impl !RefUnwindSafe for EndpointResolverParams
impl Send for EndpointResolverParams
impl Sync for EndpointResolverParams
impl Unpin for EndpointResolverParams
impl !UnwindSafe for EndpointResolverParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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