Struct reqsign::AwsV4Builder
source · pub struct AwsV4Builder { /* private fields */ }
Expand description
Builder for Signer
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn config_loader(&mut self, cfg: ConfigLoader) -> &mut Self
pub fn config_loader(&mut self, cfg: ConfigLoader) -> &mut Self
Set the config loader used by builder.
Notes
Signer will only read data from it, it’s your responsible to decide
whether or not to call ConfigLoader::load()
.
If load
is called, ConfigLoader will load config from current env.
If not, ConfigLoader will only use static config that set by users.
sourcepub fn allow_anonymous(&mut self) -> &mut Self
pub fn allow_anonymous(&mut self) -> &mut Self
Allow anonymous request if credential is not loaded.
sourcepub fn credential_loader(&mut self, cred: CredentialLoader) -> &mut Self
pub fn credential_loader(&mut self, cred: CredentialLoader) -> &mut Self
Set credential loader