pub struct SigV4AuthenticatorBuilder { /* private fields */ }
Expand description
Builder for SigV4Authenticator
.
Implementations
sourceimpl 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
sourceimpl Clone for SigV4AuthenticatorBuilder
impl Clone for SigV4AuthenticatorBuilder
sourcefn clone(&self) -> SigV4AuthenticatorBuilder
fn clone(&self) -> SigV4AuthenticatorBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SigV4AuthenticatorBuilder
impl Debug for SigV4AuthenticatorBuilder
Auto Trait Implementations
impl RefUnwindSafe for SigV4AuthenticatorBuilder
impl Send for SigV4AuthenticatorBuilder
impl Sync for SigV4AuthenticatorBuilder
impl Unpin for SigV4AuthenticatorBuilder
impl UnwindSafe for SigV4AuthenticatorBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more