Struct gcp_auth::MetadataServiceAccount
source · pub struct MetadataServiceAccount { /* private fields */ }
Expand description
A token provider that queries the GCP instance metadata server for access tokens
See https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys for details.
Implementations§
Trait Implementations§
source§impl Debug for MetadataServiceAccount
impl Debug for MetadataServiceAccount
source§impl TokenProvider for MetadataServiceAccount
impl TokenProvider for MetadataServiceAccount
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 MetadataServiceAccount
impl !RefUnwindSafe for MetadataServiceAccount
impl Send for MetadataServiceAccount
impl Sync for MetadataServiceAccount
impl Unpin for MetadataServiceAccount
impl !UnwindSafe for MetadataServiceAccount
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