[][src]Enum yup_oauth2::FlowType

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

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(u32)

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

impl Send for FlowType

impl Sync for FlowType

Blanket Implementations

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

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

type Owned = T

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.