[][src]Struct yup_oauth2::InstalledFlow

pub struct InstalledFlow<FD: FlowDelegate> { /* fields omitted */ }

InstalledFlowImpl provides tokens for services that follow the "Installed" OAuth flow. (See https://www.oauth.com/oauth2-servers/authorization/, https://developers.google.com/identity/protocols/OAuth2InstalledApp).

Methods

impl InstalledFlow<DefaultFlowDelegate>[src]

pub fn new(
    secret: ApplicationSecret,
    method: InstalledFlowReturnMethod
) -> InstalledFlow<DefaultFlowDelegate>
[src]

Create a new InstalledFlow with the provided secret and method.

impl<FD> InstalledFlow<FD> where
    FD: FlowDelegate
[src]

pub fn delegate<NewFD: FlowDelegate>(
    self,
    delegate: NewFD
) -> InstalledFlow<NewFD>
[src]

Use the provided FlowDelegate.

Trait Implementations

impl<FD, C> AuthFlow<C> for InstalledFlow<FD> where
    FD: FlowDelegate + Send + 'static,
    C: Connect + 'static, 
[src]

type TokenGetter = InstalledFlowImpl<FD, C>

Auto Trait Implementations

impl<FD> Send for InstalledFlow<FD> where
    FD: Send

impl<FD> Unpin for InstalledFlow<FD> where
    FD: Unpin

impl<FD> Sync for InstalledFlow<FD> where
    FD: Sync

impl<FD> UnwindSafe for InstalledFlow<FD> where
    FD: UnwindSafe

impl<FD> RefUnwindSafe for InstalledFlow<FD> where
    FD: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T