pub struct ExternalAccountConfig { /* private fields */ }Expand description
Google configuration for exchanging an external subject token.
Implementations§
Source§impl ExternalAccountConfig
impl ExternalAccountConfig
Sourcepub fn new(
audience: impl Into<String>,
subject_token_type: impl Into<String>,
token_url: impl Into<String>,
) -> Self
pub fn new( audience: impl Into<String>, subject_token_type: impl Into<String>, token_url: impl Into<String>, ) -> Self
Create the service-owned configuration for an external-account exchange.
Sourcepub fn with_service_account_impersonation_url(
self,
url: impl Into<String>,
) -> Self
pub fn with_service_account_impersonation_url( self, url: impl Into<String>, ) -> Self
Configure service-account impersonation after the STS exchange.
Sourcepub fn with_service_account_impersonation_lifetime(
self,
lifetime: Duration,
) -> Self
pub fn with_service_account_impersonation_lifetime( self, lifetime: Duration, ) -> Self
Configure the requested service-account impersonation token lifetime.
Trait Implementations§
Source§impl Clone for ExternalAccountConfig
impl Clone for ExternalAccountConfig
Auto Trait Implementations§
impl Freeze for ExternalAccountConfig
impl RefUnwindSafe for ExternalAccountConfig
impl Send for ExternalAccountConfig
impl Sync for ExternalAccountConfig
impl Unpin for ExternalAccountConfig
impl UnsafeUnpin for ExternalAccountConfig
impl UnwindSafe for ExternalAccountConfig
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