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
.
The date must reflect that of the request timestamp in YYYYMMDD
format, not the server’s
date. Timestamp validation is performed separately.
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>
Source§impl SigV4AuthenticatorBuilder
impl SigV4AuthenticatorBuilder
Sourcepub fn get_credential(&self) -> Option<&str>
pub fn get_credential(&self) -> Option<&str>
Retrieve the credential passed into the request.
Sourcepub fn get_signature(&self) -> Option<&str>
pub fn get_signature(&self) -> Option<&str>
Retrieve the signature passed into the request.
Sourcepub fn get_session_token(&self) -> Option<&str>
pub fn get_session_token(&self) -> Option<&str>
Retrieve the session token passed into the request.
Trait Implementations§
Source§impl Clone for SigV4AuthenticatorBuilder
impl Clone for SigV4AuthenticatorBuilder
Source§fn clone(&self) -> SigV4AuthenticatorBuilder
fn clone(&self) -> SigV4AuthenticatorBuilder
Returns a duplicate 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 moreSource§impl Debug for SigV4AuthenticatorBuilder
impl Debug for SigV4AuthenticatorBuilder
Auto Trait Implementations§
impl Freeze for SigV4AuthenticatorBuilder
impl RefUnwindSafe for SigV4AuthenticatorBuilder
impl Send for SigV4AuthenticatorBuilder
impl Sync for SigV4AuthenticatorBuilder
impl Unpin for SigV4AuthenticatorBuilder
impl UnwindSafe for SigV4AuthenticatorBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more