Struct bonsaidb::keystorage::s3::aws_sdk_s3::client::customize::orchestrator::CustomizableOperation
pub struct CustomizableOperation<T, E, B> { /* private fields */ }
Expand description
CustomizableOperation
allows for configuring a single operation invocation before it is sent.
Implementations§
§impl<T, E, B> CustomizableOperation<T, E, B>
impl<T, E, B> CustomizableOperation<T, E, B>
pub fn interceptor(
self,
interceptor: impl Interceptor + 'static
) -> CustomizableOperation<T, E, B>
pub fn interceptor( self, interceptor: impl Interceptor + 'static ) -> CustomizableOperation<T, E, B>
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.
pub fn map_request<F, MapE>(self, f: F) -> CustomizableOperation<T, E, B>
pub fn map_request<F, MapE>(self, f: F) -> CustomizableOperation<T, E, B>
Allows for customizing the operation’s request.
pub fn mutate_request<F>(self, f: F) -> CustomizableOperation<T, E, B>
pub fn mutate_request<F>(self, f: F) -> CustomizableOperation<T, E, B>
Convenience for map_request
where infallible direct mutation of request is acceptable.
pub fn config_override(
self,
config_override: impl Into<Builder>
) -> CustomizableOperation<T, E, B>
pub fn config_override( self, config_override: impl Into<Builder> ) -> CustomizableOperation<T, E, B>
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),