#[non_exhaustive]pub struct GoogleServiceAccountConfig {
pub service_account: String,
/* private fields */
}Expand description
Config for Google service account authentication.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.service_account: StringRequired. The service account to be used for authenticating request.
The iam.serviceAccounts.getAccessToken permission should be granted on
this service account to the impersonator service account.
Implementations§
Source§impl GoogleServiceAccountConfig
impl GoogleServiceAccountConfig
pub fn new() -> Self
Sourcepub fn set_service_account<T: Into<String>>(self, v: T) -> Self
pub fn set_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of service_account.
§Example
ⓘ
let x = GoogleServiceAccountConfig::new().set_service_account("example");Trait Implementations§
Source§impl Clone for GoogleServiceAccountConfig
impl Clone for GoogleServiceAccountConfig
Source§fn clone(&self) -> GoogleServiceAccountConfig
fn clone(&self) -> GoogleServiceAccountConfig
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 GoogleServiceAccountConfig
impl Debug for GoogleServiceAccountConfig
Source§impl Default for GoogleServiceAccountConfig
impl Default for GoogleServiceAccountConfig
Source§fn default() -> GoogleServiceAccountConfig
fn default() -> GoogleServiceAccountConfig
Returns the “default value” for a type. Read more
Source§impl Message for GoogleServiceAccountConfig
impl Message for GoogleServiceAccountConfig
impl StructuralPartialEq for GoogleServiceAccountConfig
Auto Trait Implementations§
impl Freeze for GoogleServiceAccountConfig
impl RefUnwindSafe for GoogleServiceAccountConfig
impl Send for GoogleServiceAccountConfig
impl Sync for GoogleServiceAccountConfig
impl Unpin for GoogleServiceAccountConfig
impl UnsafeUnpin for GoogleServiceAccountConfig
impl UnwindSafe for GoogleServiceAccountConfig
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