[][src]Struct yup_oauth2::InstalledFlow

pub struct InstalledFlow<C> { /* fields omitted */ }

Methods

impl<C> InstalledFlow<C> where
    C: BorrowMut<Client>, 
[src]

pub fn new(
    client: C,
    method: Option<InstalledFlowReturnMethod>
) -> InstalledFlow<C>
[src]

Starts a new Installed App auth flow. If HTTPRedirect is chosen as method and the server can't be started, the flow falls back to Interactive.

pub fn obtain_token<'a, AD: AuthenticatorDelegate, S, T>(
    &mut self,
    auth_delegate: &mut AD,
    appsecret: &ApplicationSecret,
    scopes: S
) -> Result<Token, Box<dyn Error>> where
    T: AsRef<str> + 'a,
    S: Iterator<Item = &'a T>, 
[src]

Handles the token request flow; it consists of the following steps: . Obtain a auhorization code with user cooperation or internal redirect. . Obtain a token and refresh token using that code. . Return that token

It's recommended not to use the DefaultAuthenticatorDelegate, but a specialized one.

Auto Trait Implementations

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

impl<C> !Sync for InstalledFlow<C>

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.