pub struct EndUserCredentials {
    pub client_id: String,
    pub client_secret: String,
    pub refresh_token: String,
    pub client_type: String,
}
Expand description

Provides tokens using default application credentials

Fields

client_id: String

The OAuth2 client_id

client_secret: String

The OAuth2 client_secret

refresh_token: String

The OAuth2 refresh_token

client_type: String

The client type (the value must be authorized_user)

Implementations

Deserializes the EndUserCredentials from a byte slice. This data is typically acquired by reading an application_default_credentials.json file from disk.

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

Like TokenProvider::get_token, but allows the JWT “subject” to be passed in. Read more

Once a response has been received for a token request, call this method to deserialize the token (and potentially store it in a local cache for reuse until it expires). Read more

Attempts to retrieve a token that can be used in an API request, if we haven’t already retrieved a token for the specified scopes, or the token has expired, an HTTP request is returned that can be used to retrieve a token. 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

Performs the conversion.

Performs the conversion.

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.