pub struct ServiceAccountKey {
    pub key_type: Option<String>,
    pub project_id: Option<String>,
    pub private_key_id: Option<String>,
    pub private_key: String,
    pub client_email: String,
    pub client_id: Option<String>,
    pub auth_uri: Option<String>,
    pub token_uri: String,
    pub auth_provider_x509_cert_url: Option<String>,
    pub client_x509_cert_url: Option<String>,
}
Expand description

JSON schema of secret service account key.

You can obtain the key from the Cloud Console.

You can use helpers::read_service_account_key() as a quick way to read a JSON client secret into a ServiceAccountKey.

Fields

key_type: Option<String>

key_type

project_id: Option<String>

project_id

private_key_id: Option<String>

private_key_id

private_key: String

private_key

client_email: String

client_email

client_id: Option<String>

client_id

auth_uri: Option<String>

auth_uri

token_uri: String

token_uri

auth_provider_x509_cert_url: Option<String>

auth_provider_x509_cert_url

client_x509_cert_url: Option<String>

client_x509_cert_url

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.