pub struct ServiceAccount {
    pub type: String,
    pub project_id: String,
    pub private_key_id: String,
    pub private_key: String,
    pub client_email: String,
    pub client_id: String,
    pub auth_uri: String,
    pub token_uri: String,
    pub auth_provider_x509_cert_url: String,
    pub client_x509_cert_url: String,
}
Expand description

A deserialized service-account-********.json-file.

Fields

type: String

The type of authentication, this should always be service_account.

project_id: String

The name of the current project.

private_key_id: String

A unqiue identifier for the private key.

private_key: String

The private key in RSA format.

client_email: String

The email address associated with the service account.

client_id: String

The unique identifier for this client.

auth_uri: String

The endpoint where authentication happens.

token_uri: String

The endpoint where OAuth2 tokens are issued.

auth_provider_x509_cert_url: String

The url of the cert provider.

client_x509_cert_url: String

The url of a static file containing metadata for this certificate.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. 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 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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more