Struct gcp_auth::GCloudAuthorizedUser
source · pub struct GCloudAuthorizedUser { /* private fields */ }
Expand description
A token provider that queries the gcloud
CLI for access tokens
Implementations§
Trait Implementations§
source§impl Debug for GCloudAuthorizedUser
impl Debug for GCloudAuthorizedUser
source§impl TokenProvider for GCloudAuthorizedUser
impl TokenProvider for GCloudAuthorizedUser
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 GCloudAuthorizedUser
impl !RefUnwindSafe for GCloudAuthorizedUser
impl Send for GCloudAuthorizedUser
impl Sync for GCloudAuthorizedUser
impl Unpin for GCloudAuthorizedUser
impl UnwindSafe for GCloudAuthorizedUser
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