pub struct ComputeIdentitySource { /* private fields */ }Expand description
Fetches a JWT token from the metadata server.
using the identity endpoint.
This token source is useful for service-to-service authentication, notably on Cloud Run.
See https://cloud.google.com/run/docs/authenticating/service-to-service#use_the_metadata_server
Trait Implementations§
source§impl Clone for ComputeIdentitySource
impl Clone for ComputeIdentitySource
source§fn clone(&self) -> ComputeIdentitySource
fn clone(&self) -> ComputeIdentitySource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ComputeIdentitySource
impl Debug for ComputeIdentitySource
Auto Trait Implementations§
impl Freeze for ComputeIdentitySource
impl !RefUnwindSafe for ComputeIdentitySource
impl Send for ComputeIdentitySource
impl Sync for ComputeIdentitySource
impl Unpin for ComputeIdentitySource
impl !UnwindSafe for ComputeIdentitySource
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)