Struct yup_oauth2::ServiceAccountKey[][src]

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>,
}

JSON schema of secret service account key. You can obtain the key from the Cloud Console at https://console.cloud.google.com/.

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

impl Clone for ServiceAccountKey[src]

impl Debug for ServiceAccountKey[src]

impl<'de> Deserialize<'de> for ServiceAccountKey[src]

impl Serialize for ServiceAccountKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.