pub struct CustomizableOperation<T, E, B> { /* private fields */ }
Expand description
CustomizableOperation
allows for configuring a single operation invocation before it is sent.
Implementations§
source§impl<E, B> CustomizableOperation<UploadPartOutput, E, B>
impl<E, B> CustomizableOperation<UploadPartOutput, E, B>
sourcepub fn disable_payload_signing(self) -> Self
pub fn disable_payload_signing(self) -> Self
Disable payload signing for this request.
WARNING: This is an advanced feature that removes the cost of signing a request payload by removing a data integrity check. Not all services/operations support this feature.
source§impl<E, B> CustomizableOperation<PutObjectOutput, E, B>
impl<E, B> CustomizableOperation<PutObjectOutput, E, B>
sourcepub fn disable_payload_signing(self) -> Self
pub fn disable_payload_signing(self) -> Self
Disable payload signing for this request.
WARNING: This is an advanced feature that removes the cost of signing a request payload by removing a data integrity check. Not all services/operations support this feature.
source§impl<T, E, B> CustomizableOperation<T, E, B>
impl<T, E, B> CustomizableOperation<T, E, B>
sourcepub fn interceptor(self, interceptor: impl Intercept + 'static) -> Self
pub fn interceptor(self, interceptor: impl Intercept + 'static) -> Self
Adds an interceptor that runs at specific stages of the request execution pipeline.
Note that interceptors can also be added to CustomizableOperation
by config_override
,
map_request
, and mutate_request
(the last two are implemented via interceptors under the hood).
The order in which those user-specified operation interceptors are invoked should not be relied upon
as it is an implementation detail.
sourcepub fn map_request<F, MapE>(self, f: F) -> Selfwhere
F: Fn(HttpRequest) -> Result<HttpRequest, MapE> + Send + Sync + 'static,
MapE: Error + Send + Sync + 'static,
pub fn map_request<F, MapE>(self, f: F) -> Selfwhere
F: Fn(HttpRequest) -> Result<HttpRequest, MapE> + Send + Sync + 'static,
MapE: Error + Send + Sync + 'static,
Allows for customizing the operation’s request.
sourcepub fn mutate_request<F>(self, f: F) -> Self
pub fn mutate_request<F>(self, f: F) -> Self
Convenience for map_request
where infallible direct mutation of request is acceptable.
sourcepub fn config_override(self, config_override: impl Into<Builder>) -> Self
pub fn config_override(self, config_override: impl Into<Builder>) -> Self
Overrides config for a single operation invocation.
config_override
is applied to the operation configuration level.
The fields in the builder that are Some
override those applied to the service
configuration level. For instance,
Config A | overridden by Config B | = Config C |
---|---|---|
field_1: None, | field_1: Some(v2), | field_1: Some(v2), |
field_2: Some(v1), | field_2: Some(v2), | field_2: Some(v2), |
field_3: Some(v1), | field_3: None, | field_3: Some(v1), |
sourcepub async fn send(self) -> Result<T, SdkError<E, HttpResponse>>
pub async fn send(self) -> Result<T, SdkError<E, HttpResponse>>
Sends the request and returns the response.
sourcepub async fn presigned(
self,
presigning_config: PresigningConfig,
) -> Result<PresignedRequest, SdkError<E>>
pub async fn presigned( self, presigning_config: PresigningConfig, ) -> Result<PresignedRequest, SdkError<E>>
Sends the request and returns the response.
Auto Trait Implementations§
impl<T, E, B> Freeze for CustomizableOperation<T, E, B>where
B: Freeze,
impl<T, E, B> !RefUnwindSafe for CustomizableOperation<T, E, B>
impl<T, E, B> Send for CustomizableOperation<T, E, B>
impl<T, E, B> Sync for CustomizableOperation<T, E, B>
impl<T, E, B> Unpin for CustomizableOperation<T, E, B>
impl<T, E, B> !UnwindSafe for CustomizableOperation<T, E, B>
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