Struct aws_sigv4::signing_params::Builder
source · pub struct Builder<'a, S> { /* private fields */ }
Expand description
Builder that can create new SigningParams
Implementations§
source§impl<'a, S> Builder<'a, S>
impl<'a, S> Builder<'a, S>
sourcepub fn access_key(self, access_key: &'a str) -> Self
pub fn access_key(self, access_key: &'a str) -> Self
Sets the access key (required).
sourcepub fn set_access_key(&mut self, access_key: Option<&'a str>)
pub fn set_access_key(&mut self, access_key: Option<&'a str>)
Sets the access key (required)
sourcepub fn secret_key(self, secret_key: &'a str) -> Self
pub fn secret_key(self, secret_key: &'a str) -> Self
Sets the secret key (required)
sourcepub fn set_secret_key(&mut self, secret_key: Option<&'a str>)
pub fn set_secret_key(&mut self, secret_key: Option<&'a str>)
Sets the secret key (required)
sourcepub fn security_token(self, security_token: &'a str) -> Self
pub fn security_token(self, security_token: &'a str) -> Self
Sets the security token (optional)
sourcepub fn set_security_token(&mut self, security_token: Option<&'a str>)
pub fn set_security_token(&mut self, security_token: Option<&'a str>)
Sets the security token (optional)
sourcepub fn set_region(&mut self, region: Option<&'a str>)
pub fn set_region(&mut self, region: Option<&'a str>)
Sets the region (required)
sourcepub fn service_name(self, service_name: &'a str) -> Self
pub fn service_name(self, service_name: &'a str) -> Self
Sets the service name (required)
sourcepub fn set_service_name(&mut self, service_name: Option<&'a str>)
pub fn set_service_name(&mut self, service_name: Option<&'a str>)
Sets the service name (required)
sourcepub fn time(self, time: SystemTime) -> Self
pub fn time(self, time: SystemTime) -> Self
Sets the time to be used in the signature (required)
sourcepub fn set_time(&mut self, time: Option<SystemTime>)
pub fn set_time(&mut self, time: Option<SystemTime>)
Sets the time to be used in the signature (required)
sourcepub fn set_settings(&mut self, settings: Option<S>)
pub fn set_settings(&mut self, settings: Option<S>)
Sets additional signing settings (required)
sourcepub fn build(self) -> Result<SigningParams<'a, S>, BuildError>
pub fn build(self) -> Result<SigningParams<'a, S>, BuildError>
Builds an instance of SigningParams
. Will yield a BuildError
if
a required argument was not given.