Struct aws_sdk_athena::operation::customize::CustomizableOperation
source · pub struct CustomizableOperation<O, Retry> { /* private fields */ }
Expand description
Implementations§
source§impl<O, Retry> CustomizableOperation<O, Retry>
impl<O, Retry> CustomizableOperation<O, Retry>
sourcepub fn map_request<E>(
self,
f: impl FnOnce(Request<SdkBody>) -> Result<Request<SdkBody>, E>
) -> Result<Self, E>
pub fn map_request<E>( self, f: impl FnOnce(Request<SdkBody>) -> Result<Request<SdkBody>, E> ) -> Result<Self, E>
Allows for customizing the operation’s request
sourcepub fn mutate_request(self, f: impl FnOnce(&mut Request<SdkBody>)) -> Self
pub fn mutate_request(self, f: impl FnOnce(&mut Request<SdkBody>)) -> Self
Convenience for map_request
where infallible direct mutation of request is acceptable
sourcepub fn map_operation<E>(
self,
f: impl FnOnce(Operation<O, Retry>) -> Result<Operation<O, Retry>, E>
) -> Result<Self, E>
pub fn map_operation<E>( self, f: impl FnOnce(Operation<O, Retry>) -> Result<Operation<O, Retry>, E> ) -> Result<Self, E>
Allows for customizing the entire operation
sourcepub fn request_mut(&mut self) -> &mut Request<SdkBody>
pub fn request_mut(&mut self) -> &mut Request<SdkBody>
Direct access to mutate the HTTP request