Struct dropbox_sdk::oauth2::Oauth2AuthorizeUrlBuilder[][src]

pub struct Oauth2AuthorizeUrlBuilder<'a> { /* fields omitted */ }

Builds a URL that can be given to the user to visit to have Dropbox authorize your app.

Implementations

impl<'a> Oauth2AuthorizeUrlBuilder<'a>[src]

pub fn new(client_id: &'a str, oauth2_type: Oauth2Type) -> Self[src]

Return a new empty builder for the given client ID and OAuth2 token type.

pub fn force_reapprove(self, value: bool) -> Self[src]

Set whether the user should be prompted to approve the request regardless of whether they have approved it before.

pub fn force_reauthentication(self, value: bool) -> Self[src]

Set whether the user should have to re-login when approving the request.

pub fn disable_signup(self, value: bool) -> Self[src]

Set whether new user signups should be allowed or not while appproving the request.

pub fn redirect_uri(self, value: &'a str) -> Self[src]

Set the URI the approve request should redirect the user to when completed.

pub fn state(self, value: &'a str) -> Self[src]

Set some opaque value to be passed along to the redirect URI when completing the request.

pub fn require_role(self, value: &'a str) -> Self[src]

Set a given role to require for the request.

pub fn locale(self, value: &'a str) -> Self[src]

Force a specific locale when prompting the user, instead of the locale indicated by their browser.

pub fn build(self) -> Url[src]

Build the OAuth2 authorization URL from the previously given parameters.

Trait Implementations

impl<'a> Debug for Oauth2AuthorizeUrlBuilder<'a>[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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.