pub struct ServiceAccountCredential {
pub service_account_key_file: Option<String>,
pub service_account_key: Option<Value>,
pub scopes: Option<Vec<String>>,
pub use_default_credential: Option<bool>,
pub project_id: Option<String>,
pub universe_domain: Option<String>,
}Expand description
Service account credential for Google Cloud.
Fields§
§service_account_key_file: Option<String>Path to the service account key JSON file.
service_account_key: Option<Value>Inline service account key JSON.
scopes: Option<Vec<String>>Scopes to request with the service account.
use_default_credential: Option<bool>Whether to use Application Default Credentials.
project_id: Option<String>Google Cloud project ID.
universe_domain: Option<String>Universe domain for the credentials.
Trait Implementations§
Source§impl Clone for ServiceAccountCredential
impl Clone for ServiceAccountCredential
Source§fn clone(&self) -> ServiceAccountCredential
fn clone(&self) -> ServiceAccountCredential
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServiceAccountCredential
impl Debug for ServiceAccountCredential
Source§impl<'de> Deserialize<'de> for ServiceAccountCredential
impl<'de> Deserialize<'de> for ServiceAccountCredential
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ServiceAccountCredential
impl RefUnwindSafe for ServiceAccountCredential
impl Send for ServiceAccountCredential
impl Sync for ServiceAccountCredential
impl Unpin for ServiceAccountCredential
impl UnwindSafe for ServiceAccountCredential
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more