Function create_api_key_credentials

Source
pub async fn create_api_key_credentials<T: Into<String>>(
    api_key: T,
    o: ApiKeyOptions,
) -> Result<Credentials, CredentialsError>
Expand description

Create credentials that authenticate using an API key.

API keys are convenient because no principal is needed. The API key associates the request with a Google Cloud project for billing and quota purposes.

Note that only some Cloud APIs support API keys. The rest require full credentials.