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
Auto Trait Implementations§
impl Freeze for CredentialLoader
impl RefUnwindSafe for CredentialLoader
impl Send for CredentialLoader
impl Sync for CredentialLoader
impl Unpin for CredentialLoader
impl UnwindSafe for CredentialLoader
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