pub enum MetadataPolicy {
Allow,
Forbid,
}Expand description
Whether credential discovery may fall through to the metadata server.
Variants§
Allow
After user credentials, use the instance’s own identity (Cloud Run, GCE, GKE). The historical behaviour.
Forbid
Never contact the metadata server: without user credentials,
discovery is Error::NoCredentials.
Trait Implementations§
Source§impl Clone for MetadataPolicy
impl Clone for MetadataPolicy
impl Copy for MetadataPolicy
Source§impl Debug for MetadataPolicy
impl Debug for MetadataPolicy
Source§impl Default for MetadataPolicy
impl Default for MetadataPolicy
impl Eq for MetadataPolicy
Source§impl PartialEq for MetadataPolicy
impl PartialEq for MetadataPolicy
impl StructuralPartialEq for MetadataPolicy
Auto Trait Implementations§
impl Freeze for MetadataPolicy
impl RefUnwindSafe for MetadataPolicy
impl Send for MetadataPolicy
impl Sync for MetadataPolicy
impl Unpin for MetadataPolicy
impl UnsafeUnpin for MetadataPolicy
impl UnwindSafe for MetadataPolicy
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.