Struct yup_oauth2::AccessTokenAuthenticator
source · pub struct AccessTokenAuthenticator;
Expand description
Create a access token authenticator for use with pre-generated access tokens
Implementations§
source§impl AccessTokenAuthenticator
impl AccessTokenAuthenticator
sourcepub fn builder(
access_token: String
) -> AuthenticatorBuilder<DefaultHyperClient, AccessTokenFlow>
pub fn builder( access_token: String ) -> AuthenticatorBuilder<DefaultHyperClient, AccessTokenFlow>
the builder pattern for the authenticator
sourcepub fn with_client<C>(
access_token: String,
client: C
) -> AuthenticatorBuilder<C, AccessTokenFlow>
pub fn with_client<C>( access_token: String, client: C ) -> AuthenticatorBuilder<C, AccessTokenFlow>
Construct a new Authenticator that uses the installed flow and the provided http client. the client itself is not used