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
Auto Trait Implementations§
impl Freeze for AccessTokenAuthenticator
impl RefUnwindSafe for AccessTokenAuthenticator
impl Send for AccessTokenAuthenticator
impl Sync for AccessTokenAuthenticator
impl Unpin for AccessTokenAuthenticator
impl UnwindSafe for AccessTokenAuthenticator
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