Struct gcp_auth::ConfigDefaultCredentials
source · pub struct ConfigDefaultCredentials { /* private fields */ }
Expand description
A token provider that uses the default user credentials
Reads credentials from .config/gcloud/application_default_credentials.json
on Linux and MacOS
or from %APPDATA%/gcloud/application_default_credentials.json
on Windows.
See GCloud Application Default Credentials
for details.
Implementations§
Trait Implementations§
source§impl Debug for ConfigDefaultCredentials
impl Debug for ConfigDefaultCredentials
source§impl TokenProvider for ConfigDefaultCredentials
impl TokenProvider for ConfigDefaultCredentials
source§fn token<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_scopes: &'life1 [&'life2 str],
) -> Pin<Box<dyn Future<Output = Result<Arc<Token>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn token<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_scopes: &'life1 [&'life2 str],
) -> Pin<Box<dyn Future<Output = Result<Arc<Token>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get a valid token for the given scopes Read more
Auto Trait Implementations§
impl !Freeze for ConfigDefaultCredentials
impl !RefUnwindSafe for ConfigDefaultCredentials
impl Send for ConfigDefaultCredentials
impl Sync for ConfigDefaultCredentials
impl Unpin for ConfigDefaultCredentials
impl !UnwindSafe for ConfigDefaultCredentials
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