pub enum CredentialSource {
File {
file: String,
},
Url {
url: String,
headers: Option<HashMap<String, String>>,
format: UrlCredentialSourceFormat,
},
}
Expand description
JSON schema of credential source.
Variants§
File
file-sourced credentials
Url
credentials](https://google.aip.dev/auth/4117#determining-the-subject-token-in-microsoft-azure-and-url-sourced-credentials)
Fields
§
url: String
This defines the local metadata server to retrieve the external credentials from. For Azure, this should be the Azure Instance Metadata Service (IMDS) URL used to retrieve the Azure AD access token.
§
headers: Option<HashMap<String, String>>
This defines the headers to append to the GET request to credential_source.url.
§
format: UrlCredentialSourceFormat
See struct documentation.
Trait Implementations§
source§impl Clone for CredentialSource
impl Clone for CredentialSource
source§fn clone(&self) -> CredentialSource
fn clone(&self) -> CredentialSource
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 CredentialSource
impl Debug for CredentialSource
source§impl<'de> Deserialize<'de> for CredentialSource
impl<'de> Deserialize<'de> for CredentialSource
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
Auto Trait Implementations§
impl Freeze for CredentialSource
impl RefUnwindSafe for CredentialSource
impl Send for CredentialSource
impl Sync for CredentialSource
impl Unpin for CredentialSource
impl UnwindSafe for CredentialSource
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
)