Struct google_cloud_auth::credentials::CredentialsFile

source ·
pub struct CredentialsFile {
Show 20 fields pub tp: String, pub client_email: Option<String>, pub private_key_id: Option<String>, pub private_key: Option<String>, pub auth_uri: Option<String>, pub token_uri: Option<String>, pub project_id: Option<String>, pub client_secret: Option<String>, pub client_id: Option<String>, pub refresh_token: Option<String>, pub audience: Option<String>, pub subject_token_type: Option<String>, pub token_url_external: Option<String>, pub token_info_url: Option<String>, pub service_account_impersonation_url: Option<String>, pub service_account_impersonation: Option<ServiceAccountImpersonationInfo>, pub delegates: Option<Vec<String>>, pub credential_source: Option<CredentialSource>, pub quota_project_id: Option<String>, pub workforce_pool_user_project: Option<String>,
}

Fields§

§tp: String§client_email: Option<String>§private_key_id: Option<String>§private_key: Option<String>§auth_uri: Option<String>§token_uri: Option<String>§project_id: Option<String>§client_secret: Option<String>§client_id: Option<String>§refresh_token: Option<String>§audience: Option<String>§subject_token_type: Option<String>§token_url_external: Option<String>§token_info_url: Option<String>§service_account_impersonation_url: Option<String>§service_account_impersonation: Option<ServiceAccountImpersonationInfo>§delegates: Option<Vec<String>>§credential_source: Option<CredentialSource>§quota_project_id: Option<String>§workforce_pool_user_project: Option<String>

Implementations§

source§

impl CredentialsFile

source

pub async fn new() -> Result<Self, Error>

source

pub async fn new_from_file(filepath: String) -> Result<Self, Error>

source

pub async fn new_from_str(str: &str) -> Result<Self, Error>

Trait Implementations§

source§

impl Clone for CredentialsFile

source§

fn clone(&self) -> CredentialsFile

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'de> Deserialize<'de> for CredentialsFile

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for CredentialsFile

source§

fn eq(&self, other: &CredentialsFile) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for CredentialsFile

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

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