[][src]Enum dropbox_sdk::Oauth2Type

pub enum Oauth2Type {
    AuthorizationCode,
    ImplicitGrant,
}

Which type of OAuth2 flow to use.

Variants

AuthorizationCode

Authorization yields a temporary authorization code which must be turned into an OAuth2 token by making another call. This can be used without a redirect URI, where the user inputs the code directly into the program.

ImplicitGrant

Authorization directly returns an OAuth2 token. This can only be used with a redirect URI where the Dropbox server redirects the user's web browser to the program.

Methods

impl Oauth2Type[src]

pub fn as_str(self) -> &'static str[src]

Trait Implementations

impl Clone for Oauth2Type[src]

impl Copy for Oauth2Type[src]

impl Debug for Oauth2Type[src]

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, 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> Typeable for T where
    T: Any