Struct yup_oauth2::ExternalAccountAuthenticator
source · pub struct ExternalAccountAuthenticator;
Expand description
Create an authenticator that uses an external account credentials.
let authenticator = yup_oauth2::ExternalAccountAuthenticator::builder(secret)
.build()
.await
.expect("failed to create authenticator");
Implementations§
source§impl ExternalAccountAuthenticator
impl ExternalAccountAuthenticator
sourcepub fn builder(
external_account_secret: ExternalAccountSecret,
) -> AuthenticatorBuilder<DefaultHyperClient, ExternalAccountFlow>
Available on crate features hyper-rustls
or hyper-tls
only.
pub fn builder( external_account_secret: ExternalAccountSecret, ) -> AuthenticatorBuilder<DefaultHyperClient, ExternalAccountFlow>
hyper-rustls
or hyper-tls
only.Use the builder pattern to create an Authenticator that uses an external account.
sourcepub fn with_client<C>(
external_account_secret: ExternalAccountSecret,
client: C,
) -> AuthenticatorBuilder<C, ExternalAccountFlow>
pub fn with_client<C>( external_account_secret: ExternalAccountSecret, client: C, ) -> AuthenticatorBuilder<C, ExternalAccountFlow>
Construct a new Authenticator that uses the installed flow and the provided http client.
Auto Trait Implementations§
impl Freeze for ExternalAccountAuthenticator
impl RefUnwindSafe for ExternalAccountAuthenticator
impl Send for ExternalAccountAuthenticator
impl Sync for ExternalAccountAuthenticator
impl Unpin for ExternalAccountAuthenticator
impl UnwindSafe for ExternalAccountAuthenticator
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