Struct reqsign::GoogleCredentialLoader
source · pub struct GoogleCredentialLoader { /* private fields */ }
Expand description
CredentialLoader will load credential from different methods.
Implementations§
source§impl CredentialLoader
impl CredentialLoader
sourcepub fn with_disable_env(self) -> Self
pub fn with_disable_env(self) -> Self
Disable load from env.
sourcepub fn with_disable_well_known_location(self) -> Self
pub fn with_disable_well_known_location(self) -> Self
Disable load from well known location.
sourcepub fn with_content(self, content: &str) -> Self
pub fn with_content(self, content: &str) -> Self
Set credential content.
sourcepub fn load(&self) -> Result<Option<Credential>>
pub fn load(&self) -> Result<Option<Credential>>
Load credential from pre-configured methods.
Trait Implementations§
source§impl Default for CredentialLoader
impl Default for CredentialLoader
source§fn default() -> CredentialLoader
fn default() -> CredentialLoader
Returns the “default value” for a type. Read more