pub struct AwsSigV4VerifierServiceBuilder<G, S, E>where
G: Service<GetSigningKeyRequest, Response = GetSigningKeyResponse, Error = BoxError> + Clone + Send + 'static,
G::Future: Send,
S: Service<Request<Body>, Response = Response<Body>, Error = BoxError> + Clone + Send + 'static,
S::Future: Send,
E: ErrorMapper,{ /* private fields */ }
Expand description
Builder for AwsSigV4VerifierService
.
Implementations§
source§impl<G, S, E> AwsSigV4VerifierServiceBuilder<G, S, E>where
G: Service<GetSigningKeyRequest, Response = GetSigningKeyResponse, Error = BoxError> + Clone + Send + 'static + Clone,
G::Future: Send,
S: Service<Request<Body>, Response = Response<Body>, Error = BoxError> + Clone + Send + 'static + Clone,
S::Future: Send,
E: ErrorMapper + Clone,
impl<G, S, E> AwsSigV4VerifierServiceBuilder<G, S, E>where
G: Service<GetSigningKeyRequest, Response = GetSigningKeyResponse, Error = BoxError> + Clone + Send + 'static + Clone,
G::Future: Send,
S: Service<Request<Body>, Response = Response<Body>, Error = BoxError> + Clone + Send + 'static + Clone,
S::Future: Send,
E: ErrorMapper + Clone,
sourcepub fn region<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn region<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The region this service is operating in.
sourcepub fn service<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn service<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The name of this service.
sourcepub fn allowed_request_methods(&mut self, value: Vec<Method>) -> &mut Self
pub fn allowed_request_methods(&mut self, value: Vec<Method>) -> &mut Self
The allowed HTTP request methods.
sourcepub fn allowed_content_types(&mut self, value: Vec<String>) -> &mut Self
pub fn allowed_content_types(&mut self, value: Vec<String>) -> &mut Self
The allowed HTTP content types.
sourcepub fn signed_header_requirements(
&mut self,
value: SignedHeaderRequirements
) -> &mut Self
pub fn signed_header_requirements(
&mut self,
value: SignedHeaderRequirements
) -> &mut Self
The HTTP headers that must be signed in the SigV4 signature.
sourcepub fn get_signing_key(&mut self, value: G) -> &mut Self
pub fn get_signing_key(&mut self, value: G) -> &mut Self
The signing key provider.
sourcepub fn implementation(&mut self, value: S) -> &mut Self
pub fn implementation(&mut self, value: S) -> &mut Self
The service implementation.
sourcepub fn error_mapper(&mut self, value: E) -> &mut Self
pub fn error_mapper(&mut self, value: E) -> &mut Self
The mapper for converting authentication errors into HTTP responses.
sourcepub fn signature_options(&mut self, value: SignatureOptions) -> &mut Self
pub fn signature_options(&mut self, value: SignatureOptions) -> &mut Self
Options for the signature verification process.
sourcepub fn build(
&self
) -> Result<AwsSigV4VerifierService<G, S, E>, AwsSigV4VerifierServiceBuilderError>
pub fn build(
&self
) -> Result<AwsSigV4VerifierService<G, S, E>, AwsSigV4VerifierServiceBuilderError>
Trait Implementations§
source§impl<G, S, E> Clone for AwsSigV4VerifierServiceBuilder<G, S, E>where
G: Service<GetSigningKeyRequest, Response = GetSigningKeyResponse, Error = BoxError> + Clone + Send + 'static + Clone,
G::Future: Send,
S: Service<Request<Body>, Response = Response<Body>, Error = BoxError> + Clone + Send + 'static + Clone,
S::Future: Send,
E: ErrorMapper + Clone,
impl<G, S, E> Clone for AwsSigV4VerifierServiceBuilder<G, S, E>where
G: Service<GetSigningKeyRequest, Response = GetSigningKeyResponse, Error = BoxError> + Clone + Send + 'static + Clone,
G::Future: Send,
S: Service<Request<Body>, Response = Response<Body>, Error = BoxError> + Clone + Send + 'static + Clone,
S::Future: Send,
E: ErrorMapper + Clone,
source§fn clone(&self) -> AwsSigV4VerifierServiceBuilder<G, S, E>
fn clone(&self) -> AwsSigV4VerifierServiceBuilder<G, S, E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more