pub struct SigV4AuthenticatorBuilder { /* private fields */ }
Expand description
Builder for SigV4Authenticator
.
Implementations§
source§impl SigV4AuthenticatorBuilder
impl SigV4AuthenticatorBuilder
sourcepub fn canonical_request_sha256(&mut self, value: [u8; 32]) -> &mut Self
pub fn canonical_request_sha256(&mut self, value: [u8; 32]) -> &mut Self
The SHA-256 hash of the canonical request.
sourcepub fn credential(&mut self, value: String) -> &mut Self
pub fn credential(&mut self, value: String) -> &mut Self
The credential passed into the request, in the form of keyid/date/region/service/aws4_request
.
This is allowed to be invalid upon creation since the validation of the credential is performed after the
validation of the request timestamp.
sourcepub fn session_token<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn session_token<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The optional session token.
sourcepub fn request_timestamp(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn request_timestamp(&mut self, value: DateTime<Utc>) -> &mut Self
The timestamp of the request, from either X-Amz-Date
query string/header or the Date
header.
sourcepub fn build(
&self
) -> Result<SigV4Authenticator, SigV4AuthenticatorBuilderError>
pub fn build(
&self
) -> Result<SigV4Authenticator, SigV4AuthenticatorBuilderError>
Trait Implementations§
source§impl Clone for SigV4AuthenticatorBuilder
impl Clone for SigV4AuthenticatorBuilder
source§fn clone(&self) -> SigV4AuthenticatorBuilder
fn clone(&self) -> SigV4AuthenticatorBuilder
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