[][src]Enum yup_oauth2::FlowType

pub enum FlowType {
    Device(String),
    InstalledInteractive,
    InstalledRedirect(u16),
}

All known authentication types, for suitable constants

Variants

Device(String)

device authentication. Only works for certain scopes. Contains the device token URL; for google, that is https://accounts.google.com/o/oauth2/device/code (exported as GOOGLE_DEVICE_CODE_URL)

InstalledInteractive

installed app flow. Required for Drive, Calendar, Gmail...; Requires user to paste a code from the browser.

InstalledRedirect(u16)

Same as InstalledInteractive, but uses a redirect: The OAuth provider redirects the user's browser to a web server that is running on localhost. This may not work as well with the Windows Firewall, but is more comfortable otherwise. The integer describes which port to bind to (default: 8080)

Trait Implementations

impl Clone for FlowType[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> Into<U> for T where
    U: From<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