pub enum GcpAuth {
Metadata,
ServiceAccountKey,
}Expand description
How the server proves its own identity to Google before it can impersonate anything.
Variants§
Metadata
Ambient identity from the GCE/GKE metadata server. Stores no key, which is why it is the default.
ServiceAccountKey
A service-account key file. Google’s own guidance calls this the last resort, because the private key inside never expires.
Trait Implementations§
impl Copy for GcpAuth
Source§impl<'de> Deserialize<'de> for GcpAuth
impl<'de> Deserialize<'de> for GcpAuth
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GcpAuth
impl StructuralPartialEq for GcpAuth
Auto Trait Implementations§
impl Freeze for GcpAuth
impl RefUnwindSafe for GcpAuth
impl Send for GcpAuth
impl Sync for GcpAuth
impl Unpin for GcpAuth
impl UnsafeUnpin for GcpAuth
impl UnwindSafe for GcpAuth
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